mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
fix(paste): ignore mappings in Cmdline mode (#18114)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user