Skip to content

Commit

Permalink
fix(hacks): dont close timer multiple times during exit
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Sep 18, 2024
1 parent 16c946a commit 86a4891
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lua/noice/util/hacks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ function M.fix_redraw()
30,
vim.schedule_wrap(function()
if Util.is_exiting() then
timer:stop()
timer:close()
return
return timer:stop()
end
if not Util.is_search() then
if vim.api.nvim__redraw then
Expand Down

0 comments on commit 86a4891

Please sign in to comment.