diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-04-30 06:05:57 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-04-30 06:06:11 +0800 |
commit | 02e9a402cae7fd477e097e2656d9ff6c397a0f56 (patch) | |
tree | 75c9a9af09730a3f3dd470ace9d5d6bbeb826900 | |
parent | 9a1920e2238f8dcde3e923cf67dae2a46a4d40df (diff) | |
download | rneovim-02e9a402cae7fd477e097e2656d9ff6c397a0f56.tar.gz rneovim-02e9a402cae7fd477e097e2656d9ff6c397a0f56.tar.bz2 rneovim-02e9a402cae7fd477e097e2656d9ff6c397a0f56.zip |
test: add test for <Cmd> mapping with character containing K_SPECIAL byte
-rw-r--r-- | test/functional/ex_cmds/cmd_map_spec.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/ex_cmds/cmd_map_spec.lua b/test/functional/ex_cmds/cmd_map_spec.lua index dbbfadabd8..42e97757db 100644 --- a/test/functional/ex_cmds/cmd_map_spec.lua +++ b/test/functional/ex_cmds/cmd_map_spec.lua @@ -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>') |