Mercurial > vim
comparison src/testdir/test_search.vim @ 29050:a2710736125a v8.2.5047
patch 8.2.5047: CurSearch highlight is often wrong
Commit: https://github.com/vim/vim/commit/368137aa525982984beed73940af481ac53a62af
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue May 31 13:43:12 2022 +0100
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 31 May 2022 14:45:03 +0200 |
parents | e96111a91a21 |
children | b90bca860b5a |
comparison
equal
deleted
inserted
replaced
29049:947c2f51b6f7 | 29050:a2710736125a |
---|---|
1077 call term_sendkeys(buf, "j\<C-L>") | 1077 call term_sendkeys(buf, "j\<C-L>") |
1078 call VerifyScreenDump(buf, 'Test_hlsearch_cursearch_multiple_line_4', {}) | 1078 call VerifyScreenDump(buf, 'Test_hlsearch_cursearch_multiple_line_4', {}) |
1079 call term_sendkeys(buf, "h\<C-L>") | 1079 call term_sendkeys(buf, "h\<C-L>") |
1080 call VerifyScreenDump(buf, 'Test_hlsearch_cursearch_multiple_line_5', {}) | 1080 call VerifyScreenDump(buf, 'Test_hlsearch_cursearch_multiple_line_5', {}) |
1081 | 1081 |
1082 " check clearing CurSearch when using it for another match | |
1083 call term_sendkeys(buf, "G?^abcd\<CR>Y") | |
1084 call term_sendkeys(buf, "kkP") | |
1085 call VerifyScreenDump(buf, 'Test_hlsearch_cursearch_changed_1', {}) | |
1086 | |
1082 call StopVimInTerminal(buf) | 1087 call StopVimInTerminal(buf) |
1083 call delete('Xhlsearch_cursearch') | 1088 call delete('Xhlsearch_cursearch') |
1084 endfunc | 1089 endfunc |
1085 | 1090 |
1086 " Similar to Test_incsearch_substitute() but with a screendump halfway. | 1091 " Similar to Test_incsearch_substitute() but with a screendump halfway. |