Skip to content

Commit

Permalink
chore: final fix ups
Browse files Browse the repository at this point in the history
  • Loading branch information
tris203 committed May 21, 2024
1 parent 3ca9e71 commit 79b93dd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lua/precognition/horizontal_motions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ local M = {}

local supportedBrackets = {
open = { "(", "[", "{" },
middle = { "", "", "" },
middle = { nil, nil, nil },
close = { ")", "]", "}" },
}

Expand Down Expand Up @@ -185,9 +185,9 @@ function M.matching_bracket(str, cursorcol, linelen)
return 0
end

local openBracket = supportedBrackets.open[bracketIdx]
local closeBracket = supportedBrackets.close[bracketIdx]
local middleBracket = supportedBrackets.middle[bracketIdx]
local openBracket = supportedBrackets.open[bracketIdx] or ""
local closeBracket = supportedBrackets.close[bracketIdx] or ""
local middleBracket = supportedBrackets.middle[bracketIdx] or ""

if under_cursor == openBracket then
local depth = 1
Expand Down

0 comments on commit 79b93dd

Please sign in to comment.