forked from aniani/vim
patch 8.2.4672: using :normal with Ex mode may make :substitute hang
Problem: Using :normal with Ex mode may make :substitute hang.
Solution: When getting an empty line behave like 'q' was typed.
(closes #10070)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user