mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07: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:
parent
2ca076e45f
commit
7542286d6a
@ -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([[
|
||||
|
|
||||
|
|
||||
|
@ -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', {})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user