mirror of
https://github.com/neovim/neovim.git
synced 2025-11-21 09:36:29 +00:00
fix(edit): fix K_EVENT interfering with 'digraph'
(cherry picked from commit b08549eb69)
This commit is contained in:
committed by
github-actions[bot]
parent
8fe351b674
commit
1234861183
@@ -1826,6 +1826,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()
|
||||
|
||||
Reference in New Issue
Block a user