From 7542286d6ad53f8250cd3575e9f3acde5f501c78 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sun, 13 Aug 2023 07:10:24 +0800 Subject: 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 --- test/functional/legacy/search_spec.lua | 11 ++++++++++- test/old/testdir/test_search.vim | 4 +++- 2 files changed, 13 insertions(+), 2 deletions(-) (limited to 'test') 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, "\") call VerifyScreenDump(buf, 'Test_incsearch_restore_view_01', {}) -- cgit