mirror of
https://github.com/vim/vim.git
synced 2025-10-09 06:14:17 -04:00
patch 8.2.2732: prompt for s///c in Ex mode can be wrong
Problem: Prompt for s///c in Ex mode can be wrong. Solution: Position the cursor before showing the prompt. (closes #8073)
This commit is contained in:
@@ -77,6 +77,9 @@ func Test_Ex_substitute()
|
||||
call WaitForAssert({-> assert_match(' 1 foo foo', term_getline(buf, 5))},
|
||||
\ 1000)
|
||||
call WaitForAssert({-> assert_match(' ^^^', term_getline(buf, 6))}, 1000)
|
||||
call term_sendkeys(buf, "N\<CR>")
|
||||
call term_wait(buf)
|
||||
call WaitForAssert({-> assert_match(' ^^^', term_getline(buf, 6))}, 1000)
|
||||
call term_sendkeys(buf, "n\<CR>")
|
||||
call WaitForAssert({-> assert_match(' ^^^', term_getline(buf, 6))},
|
||||
\ 1000)
|
||||
|
Reference in New Issue
Block a user