mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
test: add test for <Cmd> mapping with character containing K_SPECIAL byte
This commit is contained in:
@@ -136,6 +136,12 @@ describe('mappings with <Cmd>', function()
|
||||
]])
|
||||
end)
|
||||
|
||||
it('handles character containing K_SPECIAL (0x80) byte correctly', function()
|
||||
command([[noremap <F3> <Cmd>let g:str = '‥'<CR>]])
|
||||
feed('<F3>')
|
||||
eq('‥', eval('g:str'))
|
||||
end)
|
||||
|
||||
it('works in various modes and sees correct `mode()` value', function()
|
||||
-- normal mode
|
||||
feed('<F3>')
|
||||
|
Reference in New Issue
Block a user