diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-09-16 17:08:04 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-09-16 17:08:04 +0200 |
commit | 65985ac998713dfe0f0ff1dd49c5e3e8f17f4870 (patch) | |
tree | 27c293869bdbe9c36603600f16c878708a37027d /src/ex_getln.c | |
parent | 8f4499b81612568b4964e8445d86e34e6d644b13 (diff) | |
download | vim-git-65985ac998713dfe0f0ff1dd49c5e3e8f17f4870.tar.gz |
patch 8.1.0399: 'hlsearch' highlight remains in other windowv8.1.0399
Problem: 'hlsearch' highlight remains in other window after cancelling
command.
Solution: Redraw all windows. Also remove unnecessary delays. (closes #3437)
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r-- | src/ex_getln.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index 8f3833162..c2c74534b 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -445,10 +445,9 @@ finish_incsearch_highlighting( p_magic = is_state->magic_save; validate_cursor(); /* needed for TAB */ + redraw_all_later(SOME_VALID); if (call_update_screen) update_screen(SOME_VALID); - else - redraw_all_later(SOME_VALID); } } @@ -589,8 +588,11 @@ may_do_incsearch_highlighting( { next_char = ccline.cmdbuff[skiplen + patlen]; ccline.cmdbuff[skiplen + patlen] = NUL; - if (empty_pattern(ccline.cmdbuff)) + if (empty_pattern(ccline.cmdbuff) && !no_hlsearch) + { + redraw_all_later(SOME_VALID); set_no_hlsearch(TRUE); + } ccline.cmdbuff[skiplen + patlen] = next_char; } |