Mercurial > vim
comparison src/testdir/test_search.vim @ 14652:f3b183c3d3e2 v8.1.0339
patch 8.1.0339: wrong highlight when 'incsearch' set and cancelling :s
commit https://github.com/vim/vim/commit/f13daa46da85a80dd05704cdde0660c2b2651a5a
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Aug 31 22:09:54 2018 +0200
patch 8.1.0339: wrong highlight when 'incsearch' set and cancelling :s
Problem: Wrong highlight when 'incsearch' set and cancelling :s.
Solution: Reset search line range. (Hirohito Higashi, Masamichi Abe)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 31 Aug 2018 22:15:05 +0200 |
parents | c6b41d47bac1 |
children | 7771a1ff8b99 |
comparison
equal
deleted
inserted
replaced
14651:5d076ad59cf4 | 14652:f3b183c3d3e2 |
---|---|
954 call term_sendkeys(buf, ':6,7s/\v') | 954 call term_sendkeys(buf, ':6,7s/\v') |
955 sleep 100m | 955 sleep 100m |
956 call VerifyScreenDump(buf, 'Test_incsearch_substitute_09', {}) | 956 call VerifyScreenDump(buf, 'Test_incsearch_substitute_09', {}) |
957 call term_sendkeys(buf, "\<Esc>") | 957 call term_sendkeys(buf, "\<Esc>") |
958 | 958 |
959 call term_sendkeys(buf, ":set nocursorline\<CR>") | |
960 | |
961 " All matches are highlighted for 'hlsearch' after the incsearch canceled | |
962 call term_sendkeys(buf, "1G*") | |
963 call term_sendkeys(buf, ":2,5s/foo") | |
964 sleep 100m | |
965 call term_sendkeys(buf, "\<Esc>") | |
966 call VerifyScreenDump(buf, 'Test_incsearch_substitute_10', {}) | |
967 | |
959 call StopVimInTerminal(buf) | 968 call StopVimInTerminal(buf) |
960 call delete('Xis_subst_script') | 969 call delete('Xis_subst_script') |
961 endfunc | 970 endfunc |
962 | 971 |
963 " Similar to Test_incsearch_substitute_dump() for :sort | 972 " Similar to Test_incsearch_substitute_dump() for :sort |