aboutsummaryrefslogtreecommitdiff
path: root/test/functional/insert/insert_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/insert/insert_spec.lua')
-rw-r--r--test/functional/insert/insert_spec.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/insert/insert_spec.lua b/test/functional/insert/insert_spec.lua
index 427954f5a6..330cfbd830 100644
--- a/test/functional/insert/insert_spec.lua
+++ b/test/functional/insert/insert_spec.lua
@@ -37,5 +37,11 @@ describe('insert-mode', function()
command('iunmap <M-l>')
feed('0i<M-l>')
eq({ 0, 1, 2, 0, }, funcs.getpos('.'))
+ -- Unmapped ALT-chord has same `undo` characteristics as ESC+<key>
+ command('0,$d')
+ feed('ahello<M-.>')
+ expect('hellohello')
+ feed('u')
+ expect('hello')
end)
end)