diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-08-13 07:10:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-13 07:10:24 +0800 |
commit | 7542286d6ad53f8250cd3575e9f3acde5f501c78 (patch) | |
tree | 7ae96711d82aeeb1ad5249e9c503caca8b05d47a | |
parent | 2ca076e45fb3f1c08f6a1a374834df0701b8d778 (diff) | |
download | rneovim-7542286d6ad53f8250cd3575e9f3acde5f501c78.tar.gz rneovim-7542286d6ad53f8250cd3575e9f3acde5f501c78.tar.bz2 rneovim-7542286d6ad53f8250cd3575e9f3acde5f501c78.zip |
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>
-rw-r--r-- | test/functional/legacy/search_spec.lua | 11 | ||||
-rw-r--r-- | test/old/testdir/test_search.vim | 4 |
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', {}) |