summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_normal.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-04-03 12:59:34 +0100
committerBram Moolenaar <Bram@vim.org>2022-04-03 12:59:34 +0100
commitce416b453a849c837f9f6ffc91dd4792d84e1bfd (patch)
treeac34f041b3743c1f5bf07af7784269894b71b43b /src/testdir/test_normal.vim
parenta3157a476bfa8c3077d510cc8400093c0d115df5 (diff)
patch 8.2.4672: using :normal with Ex mode may make :substitute hangv8.2.4672
Problem: Using :normal with Ex mode may make :substitute hang. Solution: When getting an empty line behave like 'q' was typed. (closes #10070)
Diffstat (limited to 'src/testdir/test_normal.vim')
-rw-r--r--src/testdir/test_normal.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/testdir/test_normal.vim b/src/testdir/test_normal.vim
index cd987ab3d0..b86a72673c 100644
--- a/src/testdir/test_normal.vim
+++ b/src/testdir/test_normal.vim
@@ -2641,6 +2641,15 @@ func Test_normal33_g_cmd2()
bw!
endfunc
+func Test_normal_ex_substitute()
+ " This was hanging on the substitute prompt.
+ new
+ call setline(1, 'a')
+ exe "normal! gggQs/a/b/c\<CR>"
+ call assert_equal('a', getline(1))
+ bwipe!
+endfunc
+
" Test for g CTRL-G
func Test_g_ctrl_g()
new