Skip to content

Commit

Permalink
perf: do redrawstatus before resetting cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Nov 11, 2022
1 parent 1d1e9ed commit 5aa862f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lua/noice/util/hacks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,9 @@ function M.show_cursor()
if M._guicursor then
-- we need to reset all first and then wait for some time before resetting the guicursor. See #114
vim.go.guicursor = "a:"
vim.defer_fn(function()
vim.go.guicursor = M._guicursor
M._guicursor = nil
end, 100)
vim.cmd.redrawstatus()
vim.go.guicursor = M._guicursor
M._guicursor = nil
end
end

Expand Down

0 comments on commit 5aa862f

Please sign in to comment.