0
0
mirror of https://github.com/vim/vim.git synced 2025-10-07 05:54:16 -04:00

patch 8.1.0320: too much 'incsearch' highlight for pat matching everything

Problem:    Too much 'incsearch' highlight for pattern matching everything.
Solution:   Add the skiplen to the command and remove the line range.
            (Christian Brabandt)  Check for empty pattern earlier.
This commit is contained in:
Bram Moolenaar
2018-08-22 23:05:44 +02:00
parent 8e7218c459
commit 8b0d5ce881
4 changed files with 38 additions and 14 deletions

View File

@@ -0,0 +1,9 @@
|f+0&#ffffff0|o@1| |3| @64
|f+8&&|o@1| |4| @64
|f+0&&|o@1| |5| @64
|f|o@1| |6| @64
|f|o@1| |7| @64
|f|o@1| |8| @64
|f|o@1| |9| @64
|f|o@1| |1|0| @63
|:|6|,|7|s|/|\|v> @61

View File

@@ -913,6 +913,14 @@ func Test_incsearch_substitute_dump()
call VerifyScreenDump(buf, 'Test_incsearch_substitute_08', {})
call term_sendkeys(buf, "\<Esc>")
" Only \v handled as empty pattern, does not move cursor
call term_sendkeys(buf, '3G4G')
call term_sendkeys(buf, ":nohlsearch\<CR>")
call term_sendkeys(buf, ':6,7s/\v')
sleep 100m
call VerifyScreenDump(buf, 'Test_incsearch_substitute_09', {})
call term_sendkeys(buf, "\<Esc>")
call StopVimInTerminal(buf)
call delete('Xis_subst_script')
endfunc