mirror of
https://github.com/neovim/neovim.git
synced 2026-05-23 21:30:11 +00:00
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.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user