commit 7542286d6ad53f8250cd3575e9f3acde5f501c78
parent 2ca076e45fb3f1c08f6a1a374834df0701b8d778
Author: zeertzjq <zeertzjq@outlook.com>
Date: Sun, 13 Aug 2023 07:10:24 +0800
vim-patch:9.0.1697: incsearch test not sufficient (#24683)
Problem: incsearch test not sufficient (after 9.0.1691)
Solution: add an additional test
https://github.com/vim/vim/commit/73b8209266f0cd5c6d4df77b3700172d9c26df31
Co-authored-by: Christ van Willegen <cvwillegen@gmail.com>
Diffstat:
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/test/functional/legacy/search_spec.lua b/test/functional/legacy/search_spec.lua
@@ -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([[
|
|
diff --git a/test/old/testdir/test_search.vim b/test/old/testdir/test_search.vim
@@ -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', {})