patch 9.0.1697: incsearch test not sufficient
Problem: incsearch test not sufficient (after 9.0.1691)
Solution: add an additional test
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Christ van Willegen <cvwillegen@gmail.com>
diff --git a/src/testdir/test_search.vim b/src/testdir/test_search.vim
index f3bc6bf..1a9f49b 100644
--- a/src/testdir/test_search.vim
+++ b/src/testdir/test_search.vim
@@ -2094,8 +2094,10 @@
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', {})