mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 23:38:17 +00:00
vim-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 vim/vim#2850)
451fc7b954
This commit is contained in:
@@ -1830,7 +1830,7 @@ static int command_line_changed(CommandLineState *s)
|
||||
// If there is no command line, don't do anything
|
||||
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 {
|
||||
int search_flags = SEARCH_OPT + SEARCH_NOOF + SEARCH_PEEK;
|
||||
@@ -1888,7 +1888,7 @@ static int command_line_changed(CommandLineState *s)
|
||||
// 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();
|
||||
|
Reference in New Issue
Block a user