Skip to content

Commit

Permalink
Fix cmdline redraw bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hrsh7th committed May 3, 2022
1 parent 3e67778 commit 6e92003
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions lua/cmp/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -307,13 +307,10 @@ autocmd.subscribe(
end)
)

autocmd.subscribe(
{ 'InsertLeave', 'CmdlineLeave' },
async.debounce_safe_state(function()
cmp.core:reset()
cmp.core.view:close()
end)
)
autocmd.subscribe({ 'InsertLeave', 'CmdlineLeave' }, function()
cmp.core:reset()
cmp.core.view:close()
end)

autocmd.subscribe(
'CursorMoved',
Expand Down

0 comments on commit 6e92003

Please sign in to comment.