aboutsummaryrefslogtreecommitdiff
path: root/test/functional/api/vim_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-07-05 12:06:14 +0800
committerGitHub <noreply@github.com>2023-07-05 12:06:14 +0800
commitb2e8c0df2062f765a4cf7d96379c5f0f19393dfd (patch)
treef348c6accfed8aeb2eac2f43a072fc1a9e11fc5d /test/functional/api/vim_spec.lua
parent3ecd45ded044c47efa76b74e9e3b720fbe27adc7 (diff)
downloadrneovim-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.lua17
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()