1
0
forked from aniani/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.
This commit is contained in:
Bram Moolenaar
2022-05-31 13:43:12 +01:00
parent 4aaf3e7f4d
commit 368137aa52
7 changed files with 49 additions and 6 deletions

View File

@@ -0,0 +1,9 @@
|-+0&#ffffff0@2| @56
|a+0&#ffff4012|b|c|d|e+0&#ffffff0|f|g| @52
>a+0&#4040ff13|b|c|d|e+0&#ffffff0|f|g| @52
|h|i|j|k|l| @54
|-@2| @56
|a+0&#ffff4012|b|c|d|e+0&#ffffff0|f|g| @52
|h|i|j|k|l| @54
|~+0#4040ff13&| @58
| +0#0000000&@41|3|,|1| @10|A|l@1|

View File

@@ -1079,6 +1079,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