Skip to content

Commit

Permalink
fix(ui): cmdline is always blocking. Fixes #347
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Feb 6, 2023
1 parent 34f7cf6 commit 6702d97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lua/noice/ui/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function M.enable()

-- check if we need to update the ui
if Manager.tick() > tick then
-- Util.debug(vim.inspect({ event, tick, kind, ... }))
-- Util.debug(vim.inspect({ event, Util.is_blocking(), tick, kind, ... }))
if Util.is_blocking() then
-- if event ~= "msg_show" then
Util.try(Router.update)
Expand Down
1 change: 1 addition & 0 deletions lua/noice/util/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ function M.is_blocking(opts)
or opts.mode and blocking_mode and ("mode:" .. mode.mode)
or opts.input and Hacks.before_input and "input"
or opts.redraw and Hacks.inside_redraw and "redraw"
or #require("noice.ui.cmdline").cmdlines > 0 and "cmdline"
or nil
return reason ~= nil, reason
end
Expand Down

0 comments on commit 6702d97

Please sign in to comment.