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:
9
src/testdir/dumps/Test_incsearch_substitute_09.dump
Normal file
9
src/testdir/dumps/Test_incsearch_substitute_09.dump
Normal 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
|
@@ -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
|
||||
|
Reference in New Issue
Block a user