aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_extui/cmdline.lua
diff options
context:
space:
mode:
authorluukvbaal <luukvbaal@gmail.com>2025-06-27 21:13:01 +0200
committerGitHub <noreply@github.com>2025-06-27 12:13:01 -0700
commitf2988e05db451099645e32a427d5aaf4cae53bb4 (patch)
tree487013cc6aec3ad74cc0c31ae6d4ecf0f628b821 /runtime/lua/vim/_extui/cmdline.lua
parentbfe42c84de053abe125f7a61116bc8a97ec32cde (diff)
downloadrneovim-f2988e05db451099645e32a427d5aaf4cae53bb4.tar.gz
rneovim-f2988e05db451099645e32a427d5aaf4cae53bb4.tar.bz2
rneovim-f2988e05db451099645e32a427d5aaf4cae53bb4.zip
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.
Diffstat (limited to 'runtime/lua/vim/_extui/cmdline.lua')
-rw-r--r--runtime/lua/vim/_extui/cmdline.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/_extui/cmdline.lua b/runtime/lua/vim/_extui/cmdline.lua
index c257d07ebb..3f669277fb 100644
--- a/runtime/lua/vim/_extui/cmdline.lua
+++ b/runtime/lua/vim/_extui/cmdline.lua
@@ -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