vim-patch:9.0.1697: incsearch test not sufficient (#24683)

Problem: incsearch test not sufficient (after 9.0.1691)
Solution: add an additional test

73b8209266

Co-authored-by: Christ van Willegen <cvwillegen@gmail.com>
This commit is contained in:
zeertzjq 2023-08-13 07:10:24 +08:00 committed by GitHub
parent 2ca076e45f
commit 7542286d6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 2 deletions

View File

@ -694,7 +694,16 @@ describe('search cmdline', function()
|
]]
screen:expect(s)
feed('/xxx')
feed('/xx')
screen:expect([[
|
|
|
|
{inc:xx}x |
/xx^ |
]])
feed('x')
screen:expect([[
|
|

View File

@ -2027,8 +2027,10 @@ func Test_incsearch_restore_view()
let buf = RunVimInTerminal('-S Xincsearch_restore_view', {'rows': 6, 'cols': 20})
call VerifyScreenDump(buf, 'Test_incsearch_restore_view_01', {})
call term_sendkeys(buf, '/xxx')
call term_sendkeys(buf, '/xx')
call VerifyScreenDump(buf, 'Test_incsearch_restore_view_02', {})
call term_sendkeys(buf, 'x')
call VerifyScreenDump(buf, 'Test_incsearch_restore_view_03', {})
call term_sendkeys(buf, "\<Esc>")
call VerifyScreenDump(buf, 'Test_incsearch_restore_view_01', {})