From 02e9a402cae7fd477e097e2656d9ff6c397a0f56 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sat, 30 Apr 2022 06:05:57 +0800 Subject: test: add test for mapping with character containing K_SPECIAL byte --- test/functional/ex_cmds/cmd_map_spec.lua | 6 ++++++ 1 file changed, 6 insertions(+) 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 ', function() ]]) end) + it('handles character containing K_SPECIAL (0x80) byte correctly', function() + command([[noremap let g:str = '‥']]) + feed('') + eq('‥', eval('g:str')) + end) + it('works in various modes and sees correct `mode()` value', function() -- normal mode feed('') -- cgit