Skip to content

Commit

Permalink
fix(cmdline): use other work-around for cmdpreview
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 18, 2024
1 parent 6c5290a commit 6a3721b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/noice/ui/cmdline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ M.position = nil
---@param line number
---@param byte number
function M.on_render(_, buf, line, byte)
-- Hacks.cmdline_force_redraw()
Hacks.cmdline_force_redraw()
local win = vim.fn.bufwinid(buf)
if win ~= -1 then
-- FIXME: check with cmp
Expand Down
2 changes: 1 addition & 1 deletion lua/noice/util/hacks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function M.enable()
M.fix_redraw()
M.fix_cmp()
M.fix_vim_sleuth()
M.fix_cmdpreview()
-- M.fix_cmdpreview()

-- Hacks for Neovim < 0.10
if vim.fn.has("nvim-0.10") == 0 then
Expand Down

0 comments on commit 6a3721b

Please sign in to comment.