Skip to content

Commit

Permalink
fix fastwap change to insertmode
Browse files Browse the repository at this point in the history
  • Loading branch information
windwp committed Jun 27, 2021
1 parent 3069e5a commit c0361cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/nvim-autopairs/fastwrap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ M.show = function(line)
vim.api.nvim_buf_clear_namespace(0, M.ns_fast_wrap, row - 1, row + 1)
vim.cmd('startinsert')
end, 10)
return
end
vim.cmd('startinsert')
end

M.move_bracket = function(line, target_pos, end_pair, char_map)
Expand All @@ -99,7 +101,7 @@ M.move_bracket = function(line, target_pos, end_pair, char_map)
line = line:sub(1, col) .. line:sub(col + 2, #line)
target_pos = target_pos - 1
end
if config.check_comma and char_map == ',' then
if config.check_comma and char_map == ',' then
target_pos = target_pos - 1
end

Expand Down

0 comments on commit c0361cd

Please sign in to comment.