We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae0ed55 commit 082d3abCopy full SHA for 082d3ab
lua/easycomplete/cmdline.lua
@@ -4,6 +4,7 @@ local console = util.console
4
local cmdline_start_cmdpos = 0
5
local old_cmdline = ""
6
local pum_noselect = vim.g.easycomplete_pum_noselect
7
+local redraw_queued = false
8
local this = {}
9
10
function this.pum_complete(start_col, menu_items)
@@ -14,10 +15,15 @@ end
14
15
function this.pum_redraw()
16
if vim.fn.has('nvim-0.10') then
17
local pum_bufid = this.pum_bufid()
- vim.api.nvim__redraw({
18
- buf = pum_bufid,
19
- flush = true
20
- })
+ if redraw_queued then return end
+ redraw_queued = true
+ vim.schedule(function()
21
+ redraw_queued = false
22
+ vim.api.nvim__redraw({
23
+ buf = pum_bufid,
24
+ flush = true
25
+ })
26
+ end)
27
else
28
vim.cmd("redraw")
29
end
0 commit comments