]> granicus.if.org Git - vim/commitdiff
patch 9.0.0249: no test for what 9.0.0234 fixes v9.0.0249
authorBram Moolenaar <Bram@vim.org>
Tue, 23 Aug 2022 18:54:27 +0000 (19:54 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 23 Aug 2022 18:54:27 +0000 (19:54 +0100)
Problem:    No test for what 9.0.0234 fixes.
Solution:   Add a test. (issue #10950)

src/testdir/test_cmdwin.vim
src/version.c

index 8cfb248f7480711981bb7d01545c26f3816c6a0f..1c42cc09ebc476f9aec6c461f13d3c5f02def01f 100644 (file)
@@ -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
index 0a3d26b1ebe77c3bbfb0a6bb23933eafeefe0bfe..22ad9aade68dbf53c3796cc3b65b235c97ef7f17 100644 (file)
@@ -731,6 +731,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    249,
 /**/
     248,
 /**/