We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d73dfcb commit 16b6ba0Copy full SHA for 16b6ba0
lua/blink/cmp/completion/windows/ghost_text/utils.lua
@@ -12,7 +12,10 @@ function utils.is_noice()
12
end
13
14
function utils.redraw_if_needed()
15
- if utils.is_cmdline() then vim.api.nvim__redraw({ buf = utils.get_buf(), flush = true }) end
+ if utils.is_cmdline() then
16
+ local bufnr = utils.get_buf() or 0
17
+ if vim.api.nvim_buf_is_valid(bufnr) then vim.api.nvim__redraw({ buf = utils.get_buf(), flush = true }) end
18
+ end
19
20
21
--- Gets the buffer to use for ghost text
0 commit comments