From ab1ceaaaa90958301f68633e3248ca746f1c719c Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sun, 26 Dec 2021 15:23:39 +0800 Subject: fix: do not save K_EVENT as lastc in Insert mode I'm also gonna move some other K_EVENT-related tests to vim_spec.lua --- test/functional/editor/mode_insert_spec.lua | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'test/functional/editor/mode_insert_spec.lua') diff --git a/test/functional/editor/mode_insert_spec.lua b/test/functional/editor/mode_insert_spec.lua index 46ab483036..f03508035d 100644 --- a/test/functional/editor/mode_insert_spec.lua +++ b/test/functional/editor/mode_insert_spec.lua @@ -6,7 +6,6 @@ local expect = helpers.expect local command = helpers.command local eq = helpers.eq local eval = helpers.eval -local meths = helpers.meths describe('insert-mode', function() before_each(function() @@ -75,15 +74,5 @@ describe('insert-mode', function() feed('ooo') expect('hello oooworld') end) - - it("doesn't cancel Ctrl-O mode when processing event", function() - feed('iHello World') - eq({mode='niI', blocking=false}, meths.get_mode()) -- fast event - eq(2, eval('1+1')) -- causes K_EVENT key - eq({mode='niI', blocking=false}, meths.get_mode()) -- still in ctrl-o mode - feed('dd') - eq({mode='i', blocking=false}, meths.get_mode()) -- left ctrl-o mode - expect('') -- executed the command - end) end) end) -- cgit