aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-05-13 22:28:34 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-05-13 22:45:59 +0800
commitf80cf0f84f6e39dc3dfd1697eb911ac28b6ec97d (patch)
treeda89ff5b00496b71433d447983304bfdc0b0cdec
parent4111530806741bc25bd426ec9b7e9340bdd57991 (diff)
downloadrneovim-f80cf0f84f6e39dc3dfd1697eb911ac28b6ec97d.tar.gz
rneovim-f80cf0f84f6e39dc3dfd1697eb911ac28b6ec97d.tar.bz2
rneovim-f80cf0f84f6e39dc3dfd1697eb911ac28b6ec97d.zip
vim-patch:9.0.0249: no test for what 9.0.0234 fixes
Problem: No test for what 9.0.0234 fixes. Solution: Add a test. (issue vim/vim#10950) https://github.com/vim/vim/commit/3a7ad904d27d904e57f7a22eb33872a587ae6673 Co-authored-by: Bram Moolenaar <Bram@vim.org>
-rw-r--r--test/old/testdir/test_cmdwin.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/old/testdir/test_cmdwin.vim b/test/old/testdir/test_cmdwin.vim
index 14170fbb13..e54945f1b6 100644
--- a/test/old/testdir/test_cmdwin.vim
+++ b/test/old/testdir/test_cmdwin.vim
@@ -21,5 +21,12 @@ func Test_cmdwin_virtual_edit()
set ve= cpo-=$
endfunc
+" Check that a :normal command can be used to stop Visual mode without side
+" effects.
+func Test_normal_escape()
+ call feedkeys("q:i\" foo\<Esc>:normal! \<C-V>\<Esc>\<CR>:\" bar\<CR>", 'ntx')
+ call assert_equal('" bar', @:)
+endfunc
+
" vim: shiftwidth=2 sts=2 expandtab