Mercurial > vim
comparison src/ex_getln.c @ 14774:5e5f2d824189 v8.1.0399
patch 8.1.0399: 'hlsearch' highlight remains in other window
commit https://github.com/vim/vim/commit/65985ac998713dfe0f0ff1dd49c5e3e8f17f4870
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 16 17:08:04 2018 +0200
patch 8.1.0399: 'hlsearch' highlight remains in other window
Problem: 'hlsearch' highlight remains in other window after cancelling
command.
Solution: Redraw all windows. Also remove unnecessary delays. (closes #3437)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 16 Sep 2018 17:15:05 +0200 |
parents | fd69edd2c67e |
children | 7379bc1c3498 |
comparison
equal
deleted
inserted
replaced
14773:a46c5807a640 | 14774:5e5f2d824189 |
---|---|
443 search_last_line = MAXLNUM; | 443 search_last_line = MAXLNUM; |
444 | 444 |
445 p_magic = is_state->magic_save; | 445 p_magic = is_state->magic_save; |
446 | 446 |
447 validate_cursor(); /* needed for TAB */ | 447 validate_cursor(); /* needed for TAB */ |
448 redraw_all_later(SOME_VALID); | |
448 if (call_update_screen) | 449 if (call_update_screen) |
449 update_screen(SOME_VALID); | 450 update_screen(SOME_VALID); |
450 else | |
451 redraw_all_later(SOME_VALID); | |
452 } | 451 } |
453 } | 452 } |
454 | 453 |
455 /* | 454 /* |
456 * Do 'incsearch' highlighting if desired. | 455 * Do 'incsearch' highlighting if desired. |
587 // Avoids a flash when typing "foo\|". | 586 // Avoids a flash when typing "foo\|". |
588 if (!use_last_pat) | 587 if (!use_last_pat) |
589 { | 588 { |
590 next_char = ccline.cmdbuff[skiplen + patlen]; | 589 next_char = ccline.cmdbuff[skiplen + patlen]; |
591 ccline.cmdbuff[skiplen + patlen] = NUL; | 590 ccline.cmdbuff[skiplen + patlen] = NUL; |
592 if (empty_pattern(ccline.cmdbuff)) | 591 if (empty_pattern(ccline.cmdbuff) && !no_hlsearch) |
592 { | |
593 redraw_all_later(SOME_VALID); | |
593 set_no_hlsearch(TRUE); | 594 set_no_hlsearch(TRUE); |
595 } | |
594 ccline.cmdbuff[skiplen + patlen] = next_char; | 596 ccline.cmdbuff[skiplen + patlen] = next_char; |
595 } | 597 } |
596 | 598 |
597 validate_cursor(); | 599 validate_cursor(); |
598 // May redraw the status line to show the cursor position. | 600 // May redraw the status line to show the cursor position. |