comparison src/ex_getln.c @ 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
434 } 434 }
435 curwin->w_cursor = is_state->search_start; 435 curwin->w_cursor = is_state->search_start;
436 } 436 }
437 restore_viewstate(&is_state->old_viewstate); 437 restore_viewstate(&is_state->old_viewstate);
438 highlight_match = FALSE; 438 highlight_match = FALSE;
439
440 // by default search all lines
441 search_first_line = 0;
442 search_last_line = MAXLNUM;
443
444 p_magic = is_state->magic_save;
445
439 validate_cursor(); /* needed for TAB */ 446 validate_cursor(); /* needed for TAB */
440 if (call_update_screen) 447 if (call_update_screen)
441 update_screen(SOME_VALID); 448 update_screen(SOME_VALID);
442 else 449 else
443 redraw_all_later(SOME_VALID); 450 redraw_all_later(SOME_VALID);
444 p_magic = is_state->magic_save;
445 } 451 }
446 } 452 }
447 453
448 /* 454 /*
449 * Do 'incsearch' highlighting if desired. 455 * Do 'incsearch' highlighting if desired.