feat(extui): don't enter pager for routed message #34679

Problem:  Messages routed to the pager to be shown in full, enter the
          pager automatically, yielding another "press-q-prompt".

Solution: Only enter the pager when requested explicitly. Otherwise,
          close the pager on the next typed mapping, unless that mapping
          entered the pager.
This commit is contained in:
luukvbaal
2025-06-27 21:13:01 +02:00
committed by GitHub
parent bfe42c84de
commit f2988e05db
4 changed files with 84 additions and 16 deletions

View File

@@ -114,7 +114,7 @@ end
---@param level integer
---@param abort boolean
function M.cmdline_hide(level, abort)
if M.row > 0 or level > 1 then
if M.row > 0 or level > (fn.getcmdwintype() == '' and 1 or 2) then
return -- No need to hide when still in nested cmdline or cmdline_block.
end