changeset 29820:8629106c4982 v9.0.0249

patch 9.0.0249: no test for what 9.0.0234 fixes Commit: https://github.com/vim/vim/commit/3a7ad904d27d904e57f7a22eb33872a587ae6673 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 23 19:54:27 2022 +0100 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 https://github.com/vim/vim/issues/10950)
author Bram Moolenaar <Bram@vim.org>
date Tue, 23 Aug 2022 21:00:02 +0200
parents 38f88030a734
children f05003cdc4c1
files src/testdir/test_cmdwin.vim src/version.c
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_cmdwin.vim
+++ b/src/testdir/test_cmdwin.vim
@@ -373,5 +373,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
--- a/src/version.c
+++ b/src/version.c
@@ -732,6 +732,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    249,
+/**/
     248,
 /**/
     247,