mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 10:56:31 +00:00
fix(extui): use visible to determine active "more" (#34327)
Problem: Current window is checked to determine whether "more" window is open. Making it the current window is scheduled in case the cmdwin is open so this can be too late. "cmdline_hide" may be emitted when the topline is temporarily invalid (after incsearch->restore_viewstate()). Solution: Use the window visibility to determine an active "more" window instead. Don't nvim__redraw->flush the "cmdline_hide" event (a normal will already happen).
This commit is contained in:
@@ -49,7 +49,7 @@ local function ui_callback(event, ...)
|
||||
ext.tab_check_wins()
|
||||
handler(...)
|
||||
api.nvim__redraw({
|
||||
flush = true,
|
||||
flush = handler ~= ext.cmd.cmdline_hide or nil,
|
||||
cursor = handler == ext.cmd[event] and true or nil,
|
||||
win = handler == ext.cmd[event] and ext.wins.cmd or nil,
|
||||
})
|
||||
|
Reference in New Issue
Block a user