diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-07-05 12:06:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-05 12:06:14 +0800 |
commit | b2e8c0df2062f765a4cf7d96379c5f0f19393dfd (patch) | |
tree | f348c6accfed8aeb2eac2f43a072fc1a9e11fc5d /test/functional/api/vim_spec.lua | |
parent | 3ecd45ded044c47efa76b74e9e3b720fbe27adc7 (diff) | |
download | rneovim-b2e8c0df2062f765a4cf7d96379c5f0f19393dfd.tar.gz rneovim-b2e8c0df2062f765a4cf7d96379c5f0f19393dfd.tar.bz2 rneovim-b2e8c0df2062f765a4cf7d96379c5f0f19393dfd.zip |
fix(edit): fix K_EVENT interfering with 'digraph' (#24258)
Diffstat (limited to 'test/functional/api/vim_spec.lua')
-rw-r--r-- | test/functional/api/vim_spec.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua index 664cd4cbca..6f75de7f1b 100644 --- a/test/functional/api/vim_spec.lua +++ b/test/functional/api/vim_spec.lua @@ -1828,6 +1828,23 @@ describe('API', function() feed('<C-D>') expect('a') -- recognized i_0_CTRL-D end) + + it("does not interrupt with 'digraph'", function() + command('set digraph') + feed('i,') + eq(2, eval('1+1')) -- causes K_EVENT key + feed('<BS>') + eq(2, eval('1+1')) -- causes K_EVENT key + feed('.') + expect('…') -- digraph ",." worked + feed('<Esc>') + feed(':,') + eq(2, eval('1+1')) -- causes K_EVENT key + feed('<BS>') + eq(2, eval('1+1')) -- causes K_EVENT key + feed('.') + eq('…', funcs.getcmdline()) -- digraph ",." worked + end) end) describe('nvim_get_context', function() |