mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.0.1768: SET_NO_HLSEARCH() used in a wrong way
Problem: SET_NO_HLSEARCH() used in a wrong way. Solution: Make it a function. (suggested by Dominique Pelle, closes #2850)
This commit is contained in:
@@ -1976,7 +1976,7 @@ cmdline_changed:
|
||||
if (ccline.cmdlen == 0)
|
||||
{
|
||||
i = 0;
|
||||
SET_NO_HLSEARCH(TRUE); /* turn off previous highlight */
|
||||
set_no_hlsearch(TRUE); /* turn off previous highlight */
|
||||
redraw_all_later(SOME_VALID);
|
||||
}
|
||||
else
|
||||
@@ -2045,7 +2045,7 @@ cmdline_changed:
|
||||
/* Disable 'hlsearch' highlighting if the pattern matches
|
||||
* everything. Avoids a flash when typing "foo\|". */
|
||||
if (empty_pattern(ccline.cmdbuff))
|
||||
SET_NO_HLSEARCH(TRUE);
|
||||
set_no_hlsearch(TRUE);
|
||||
|
||||
validate_cursor();
|
||||
/* May redraw the status line to show the cursor position. */
|
||||
|
Reference in New Issue
Block a user