mirror of
https://github.com/neovim/neovim.git
synced 2026-08-30 02:51:48 +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:
@@ -180,6 +180,7 @@ describe('messages2', function()
|
||||
foo [+9] |
|
||||
]])
|
||||
-- Do enter the pager in normal mode.
|
||||
command('nmap <Esc> <Cmd>fclose<CR>')
|
||||
feed('<CR>')
|
||||
screen:expect([[
|
||||
^foo |
|
||||
|
||||
Reference in New Issue
Block a user