aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-01-29 06:37:44 +0800
committerGitHub <noreply@github.com>2022-01-29 06:37:44 +0800
commit1ebac3cf4e0dd814ca90382e404da477dc2b894e (patch)
tree22ad6247acd7b8dab3a58982cc50c272a8287614 /test/functional
parentaf9a2a201d5e2bc178488a04c114ba6c1db4fa19 (diff)
parent75f4741db92768db1db937fd4dbce15a01b65042 (diff)
downloadrneovim-1ebac3cf4e0dd814ca90382e404da477dc2b894e.tar.gz
rneovim-1ebac3cf4e0dd814ca90382e404da477dc2b894e.tar.bz2
rneovim-1ebac3cf4e0dd814ca90382e404da477dc2b894e.zip
Merge pull request #17220 from zeertzjq/unget-alt-chord
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/editor/meta_key_spec.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/functional/editor/meta_key_spec.lua b/test/functional/editor/meta_key_spec.lua
index f811b8ae8d..8efcc81616 100644
--- a/test/functional/editor/meta_key_spec.lua
+++ b/test/functional/editor/meta_key_spec.lua
@@ -104,4 +104,20 @@ describe('meta-keys #8226 #13042', function()
eq({ 0, 2, 1, 0, }, funcs.getpos('.'))
eq('nt', eval('mode(1)'))
end)
+
+ it('ALT/META when recording a macro #13235', function()
+ feed('ifoo<CR>bar<CR>baz<Esc>gg0')
+ -- <M-"> is reinterpreted as <Esc>"
+ feed('qrviw"ayC// This is some text: <M-">apq')
+ expect([[
+ // This is some text: foo
+ bar
+ baz]])
+ -- Should not insert an extra double quote when replaying
+ feed('j0@rj0@@')
+ expect([[
+ // This is some text: foo
+ // This is some text: bar
+ // This is some text: baz]])
+ end)
end)