mirror of
https://github.com/neovim/neovim.git
synced 2025-12-10 00:22:41 +00:00
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:
@@ -694,7 +694,16 @@ describe('search cmdline', function()
|
|||||||
|
|
|
|
||||||
]]
|
]]
|
||||||
screen:expect(s)
|
screen:expect(s)
|
||||||
feed('/xxx')
|
feed('/xx')
|
||||||
|
screen:expect([[
|
||||||
|
|
|
||||||
|
|
|
||||||
|
|
|
||||||
|
|
|
||||||
|
{inc:xx}x |
|
||||||
|
/xx^ |
|
||||||
|
]])
|
||||||
|
feed('x')
|
||||||
screen:expect([[
|
screen:expect([[
|
||||||
|
|
|
|
||||||
|
|
|
|
||||||
|
|||||||
@@ -2027,8 +2027,10 @@ func Test_incsearch_restore_view()
|
|||||||
let buf = RunVimInTerminal('-S Xincsearch_restore_view', {'rows': 6, 'cols': 20})
|
let buf = RunVimInTerminal('-S Xincsearch_restore_view', {'rows': 6, 'cols': 20})
|
||||||
|
|
||||||
call VerifyScreenDump(buf, 'Test_incsearch_restore_view_01', {})
|
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 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 term_sendkeys(buf, "\<Esc>")
|
||||||
call VerifyScreenDump(buf, 'Test_incsearch_restore_view_01', {})
|
call VerifyScreenDump(buf, 'Test_incsearch_restore_view_01', {})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user