Skip to content

Commit

Permalink
fix: noautocmd for ze in cmdline. Fixes #206
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Nov 7, 2022
1 parent e6222b9 commit 8d088aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/noice/ui/cmdline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ function M.on_render(_, buf, line, byte)
local cursor = byte - M.last():length() + M.last().state.pos
vim.api.nvim_win_set_cursor(win, { 1, cursor })
vim.api.nvim_win_call(win, function()
vim.cmd([[silent! normal! ze]])
vim.cmd([[noautocmd silent! normal! ze]])
end)

local pos = vim.fn.screenpos(win, line, cmdline_start)
Expand Down

0 comments on commit 8d088aa

Please sign in to comment.