From f80cf0f84f6e39dc3dfd1697eb911ac28b6ec97d Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sat, 13 May 2023 22:28:34 +0800 Subject: [PATCH] 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 --- test/old/testdir/test_cmdwin.vim | 7 +++++++ 1 file changed, 7 insertions(+) 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\:normal! \\\:\" bar\", 'ntx') + call assert_equal('" bar', @:) +endfunc + " vim: shiftwidth=2 sts=2 expandtab