Skip to content

Commit cbde6cf

Browse files
committed
update
1 parent bd87941 commit cbde6cf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lua/fnpairs/init.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,10 @@ end)
132132
local should_skip_completion = function(char)
133133
local state = State.new()
134134
local prev_char = get_char_before(state).value
135-
return char == "'" and prev_char and string.match(prev_char, '[%w]') and Action.Nothing
136-
or Action.Insert(char, BracketPair[char])
135+
if char == "'" and prev_char and string.match(prev_char, '[%w]') then
136+
return Action.Insert(char, BracketPair[char])
137+
end
138+
return Action.Insert(char, BracketPair[char])
137139
end
138140

139141
local determine_char_action = function(char)

0 commit comments

Comments
 (0)