Skip to content

Commit

Permalink
fix(ui): exclude search_count from realtime updates
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Oct 7, 2023
1 parent 7cf858c commit 73caffa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/noice/ui/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function M.enable()

if stack_level > 50 then
Util.panic("Event loop detected. Shutting down...")
return
return true
end
stack_level = stack_level + 1

Expand All @@ -93,8 +93,8 @@ function M.enable()

-- check if we need to update the ui
if Manager.tick() > tick then
-- Util.debug(vim.inspect({ event, Util.is_blocking(), tick, kind, ... }))
if Util.is_blocking() and event ~= "msg_ruler" then
-- Util.debug(vim.inspect({ event, stack_level, Util.is_blocking(), tick, kind, ... }))
if Util.is_blocking() and event ~= "msg_ruler" and kind ~= "search_count" then
Util.try(Router.update)
end
else
Expand Down

0 comments on commit 73caffa

Please sign in to comment.