Skip to content

Commit 670da88

Browse files
committed
bugfix for cmdline history memery
1 parent 0f420d8 commit 670da88

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lua/easycomplete/autocmd.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ function M.init_once()
2727

2828
if vim.g.AutoPairsMapSpace and vim.g.AutoPairsMapSpace == 1 then
2929
vim.on_key(function(keys, _)
30+
if vim.api.nvim_get_mode().mode == "c" then
31+
return
32+
end
3033
autopair.hack_pair_input(keys)
3134
end)
3235
end

0 commit comments

Comments
 (0)