mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +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)
|
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()
|
it('works in various modes and sees correct `mode()` value', function()
|
||||||
-- normal mode
|
-- normal mode
|
||||||
feed('<F3>')
|
feed('<F3>')
|
||||||
|
Reference in New Issue
Block a user