aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/functional/legacy/search_spec.lua11
-rw-r--r--test/old/testdir/test_search.vim4
2 files changed, 13 insertions, 2 deletions
diff --git a/test/functional/legacy/search_spec.lua b/test/functional/legacy/search_spec.lua
index e2544a8405..25620f5262 100644
--- 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
index abbb9cd46d..4a92ae34e4 100644
--- 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', {})