aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_core
diff options
context:
space:
mode:
authorTomasz N <przepompownia@users.noreply.github.com>2026-05-06 15:42:26 +0200
committerGitHub <noreply@github.com>2026-05-06 15:42:26 +0200
commit2b7a00746d93f0e17bf359a4e7e11ef96ce33e0c (patch)
treeac1153a55ba10622aa93d6c7f8a73002a4eb6e39 /runtime/lua/vim/_core
parentc3f803c3b6d48eb885003dc12935785629150624 (diff)
downloadrneovim-2b7a00746d93f0e17bf359a4e7e11ef96ce33e0c.tar.gz
rneovim-2b7a00746d93f0e17bf359a4e7e11ef96ce33e0c.tar.bz2
rneovim-2b7a00746d93f0e17bf359a4e7e11ef96ce33e0c.zip
fix(ui2): entering the pager fails if `<ESC>` is remapped to `:fclose` (#39462)
Problem: Entering the pager fails if <ESC> is remapped to :fclose by user. Solution: Avoid executing mappings with nvim_feedkeys() that closes expanded cmdline.
Diffstat (limited to 'runtime/lua/vim/_core')
-rw-r--r--runtime/lua/vim/_core/ui2/messages.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/_core/ui2/messages.lua b/runtime/lua/vim/_core/ui2/messages.lua
index fe8fe9c99f..f92f23646b 100644
--- a/runtime/lua/vim/_core/ui2/messages.lua
+++ b/runtime/lua/vim/_core/ui2/messages.lua
@@ -600,7 +600,7 @@ local function enter_pager()
if was_cmdwin ~= '' then
api.nvim_command('quit')
elseif M.cmd_on_key then
- api.nvim_feedkeys(vim.keycode('<Esc>'), 't', false)
+ api.nvim_feedkeys(vim.keycode('<Esc>'), 'tn', false)
end
-- Cmdwin is closed one event iteration later so schedule in case it was open.
vim.schedule(function()