diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2024-06-19 07:42:56 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2024-06-19 08:02:29 +0800 |
| commit | a2a3e8412e6d4e9a952c57a5298016cae8bf5229 (patch) | |
| tree | 4c606a997f28a74b531ab2888e2f59eac5329d70 /test/old/testdir | |
| parent | 14aba679670a6485596c60fa5eb1df92ecae8a1b (diff) | |
| download | rneovim-a2a3e8412e6d4e9a952c57a5298016cae8bf5229.tar.gz rneovim-a2a3e8412e6d4e9a952c57a5298016cae8bf5229.tar.bz2 rneovim-a2a3e8412e6d4e9a952c57a5298016cae8bf5229.zip | |
vim-patch:8.2.5047: CurSearch highlight is often wrong
Problem: CurSearch highlight is often wrong.
Solution: Remember the last highlighted position and redraw when needed.
https://github.com/vim/vim/commit/368137aa525982984beed73940af481ac53a62af
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'test/old/testdir')
| -rw-r--r-- | test/old/testdir/test_search.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/old/testdir/test_search.vim b/test/old/testdir/test_search.vim index 018ee7ad5a..8b535b5b19 100644 --- a/test/old/testdir/test_search.vim +++ b/test/old/testdir/test_search.vim @@ -1094,6 +1094,11 @@ func Test_hlsearch_cursearch() call term_sendkeys(buf, "h\<C-L>") call VerifyScreenDump(buf, 'Test_hlsearch_cursearch_multiple_line_5', {}) + " check clearing CurSearch when using it for another match + call term_sendkeys(buf, "G?^abcd\<CR>Y") + call term_sendkeys(buf, "kkP") + call VerifyScreenDump(buf, 'Test_hlsearch_cursearch_changed_1', {}) + call StopVimInTerminal(buf) call delete('Xhlsearch_cursearch') endfunc |