diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-01-21 18:08:56 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-01-21 18:08:56 +0800 |
commit | ff7c3d12750b1cd4baccea0baeafe7e5d5339e94 (patch) | |
tree | 80f5d1aaf89e473e549982121ce14dfeaf3092bc /test/functional/ui/input_spec.lua | |
parent | c977d8b43cd6ecf7ad756f9b064eadea79fbd604 (diff) | |
download | rneovim-ff7c3d12750b1cd4baccea0baeafe7e5d5339e94.tar.gz rneovim-ff7c3d12750b1cd4baccea0baeafe7e5d5339e94.tar.bz2 rneovim-ff7c3d12750b1cd4baccea0baeafe7e5d5339e94.zip |
fix(input): never escape CSI bytes
Diffstat (limited to 'test/functional/ui/input_spec.lua')
-rw-r--r-- | test/functional/ui/input_spec.lua | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/test/functional/ui/input_spec.lua b/test/functional/ui/input_spec.lua index ea8968a653..11718a6e18 100644 --- a/test/functional/ui/input_spec.lua +++ b/test/functional/ui/input_spec.lua @@ -114,11 +114,30 @@ describe('mappings', function() end) end) -describe('input utf sequences that contain CSI/K_SPECIAL', function() +describe('input utf sequences that contain K_SPECIAL (0x80)', function() it('ok', function() feed('i…<esc>') expect('…') end) + + it('can be mapped', function() + command('inoremap … E280A6') + feed('i…<esc>') + expect('E280A6') + end) +end) + +describe('input utf sequences that contain CSI (0x9B)', function() + it('ok', function() + feed('iě<esc>') + expect('ě') + end) + + it('can be mapped', function() + command('inoremap ě C49B') + feed('iě<esc>') + expect('C49B') + end) end) describe('input non-printable chars', function() |