Skip to content

Commit 412594c

Browse files
committed
fix: force cmdline redraw only when pum is not visible. Fixes #188. Closes #189
1 parent 14cff19 commit 412594c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/noice/util/hacks.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ function M.fix_cmp()
255255
end
256256

257257
function M.cmdline_force_redraw()
258-
if vim.api.nvim_get_mode().mode == "c" and vim.fn.getcmdline():find("s/") then
258+
if vim.fn.pumvisible() == 0 and vim.api.nvim_get_mode().mode == "c" and vim.fn.getcmdline():find("s/") then
259259
-- HACK: this will trigger redraw during substitue
260260
vim.api.nvim_input("<space><bs>")
261261
end

0 commit comments

Comments
 (0)