diff options
author | zeertzjq <zeertzjq@outlook.com> | 2021-12-26 15:23:39 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2021-12-26 16:14:35 +0800 |
commit | ab1ceaaaa90958301f68633e3248ca746f1c719c (patch) | |
tree | d37606d41731d9d97979f89b0cc10c8a3e838107 /test/functional/editor/mode_insert_spec.lua | |
parent | 9dd8557921ec94035971a3145ab744add858459a (diff) | |
download | rneovim-ab1ceaaaa90958301f68633e3248ca746f1c719c.tar.gz rneovim-ab1ceaaaa90958301f68633e3248ca746f1c719c.tar.bz2 rneovim-ab1ceaaaa90958301f68633e3248ca746f1c719c.zip |
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
Diffstat (limited to 'test/functional/editor/mode_insert_spec.lua')
-rw-r--r-- | test/functional/editor/mode_insert_spec.lua | 11 |
1 files changed, 0 insertions, 11 deletions
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<c-o>') - 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) |