mirror of
https://github.com/neovim/neovim.git
synced 2026-01-23 05:10:34 +00:00
fix(paste): feed keys as typed in cmdline mode
(cherry picked from commit c12add7dfa)
This commit is contained in:
committed by
github-actions[bot]
parent
2255d0fb63
commit
95e1978959
@@ -1108,6 +1108,14 @@ describe('API', function()
|
||||
nvim('paste', 'a', true, -1)
|
||||
eq('a', funcs.getcmdline())
|
||||
end)
|
||||
it('pasted text is saved in cmdline history when <CR> comes from mapping #20957', function()
|
||||
command('cnoremap <CR> <CR>')
|
||||
feed(':')
|
||||
nvim('paste', 'echo', true, -1)
|
||||
eq('', funcs.histget(':'))
|
||||
feed('<CR>')
|
||||
eq('echo', funcs.histget(':'))
|
||||
end)
|
||||
it('pasting with empty last chunk in Cmdline mode', function()
|
||||
local screen = Screen.new(20, 4)
|
||||
screen:attach()
|
||||
|
||||
Reference in New Issue
Block a user