diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-08-31 22:09:54 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-08-31 22:09:54 +0200 |
commit | f13daa46da85a80dd05704cdde0660c2b2651a5a (patch) | |
tree | 8125517a1c869f1a182f99d6fc97d7fcc0954972 /src/ex_getln.c | |
parent | f6ceaf1e058c64775fd46cbdb8962f5c19ef83e0 (diff) | |
download | vim-git-f13daa46da85a80dd05704cdde0660c2b2651a5a.tar.gz |
patch 8.1.0339: wrong highlight when 'incsearch' set and cancelling :sv8.1.0339
Problem: Wrong highlight when 'incsearch' set and cancelling :s.
Solution: Reset search line range. (Hirohito Higashi, Masamichi Abe)
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r-- | src/ex_getln.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index 7f748cb17..c316e192a 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -436,12 +436,18 @@ finish_incsearch_highlighting( } restore_viewstate(&is_state->old_viewstate); highlight_match = FALSE; + + // by default search all lines + search_first_line = 0; + search_last_line = MAXLNUM; + + p_magic = is_state->magic_save; + validate_cursor(); /* needed for TAB */ if (call_update_screen) update_screen(SOME_VALID); else redraw_all_later(SOME_VALID); - p_magic = is_state->magic_save; } } |