aboutsummaryrefslogtreecommitdiff
path: root/test/functional/editor/mode_insert_spec.lua
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-12-26 18:29:49 +0100
committerGitHub <noreply@github.com>2021-12-26 18:29:49 +0100
commita23f4a7921114ee36f4731e4ad872efbba6722d3 (patch)
tree28f22af3d7157c5d05d2ff9bb2bfedb251741bda /test/functional/editor/mode_insert_spec.lua
parent2b0be9eff8463bc22f631f65c95d6ac21e4090bc (diff)
parentab1ceaaaa90958301f68633e3248ca746f1c719c (diff)
downloadrneovim-a23f4a7921114ee36f4731e4ad872efbba6722d3.tar.gz
rneovim-a23f4a7921114ee36f4731e4ad872efbba6722d3.tar.bz2
rneovim-a23f4a7921114ee36f4731e4ad872efbba6722d3.zip
Merge pull request #16792 from zeertzjq/ins-lastc-k-event
fix: do not save K_EVENT as lastc in Insert mode
Diffstat (limited to 'test/functional/editor/mode_insert_spec.lua')
-rw-r--r--test/functional/editor/mode_insert_spec.lua11
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)