fix(paste): ignore mappings in Cmdline mode (#18114)

This commit is contained in:
Eden Zhang
2022-04-17 12:11:53 +12:00
committed by GitHub
parent dcf7bc4140
commit 813ecdac79
2 changed files with 11 additions and 5 deletions

View File

@@ -1085,6 +1085,12 @@ describe('API', function()
eq('aabbccdd', funcs.getcmdline())
expect('')
end)
it('mappings are disabled in Cmdline mode', function()
command('cnoremap a b')
feed(':')
nvim('paste', 'a', true, -1)
eq('a', funcs.getcmdline())
end)
it('pasting with empty last chunk in Cmdline mode', function()
local screen = Screen.new(20, 4)
screen:attach()