mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 09:48:19 +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:
@@ -9990,12 +9990,18 @@ static void ex_set(exarg_T *eap)
|
||||
(void)do_set(eap->arg, flags);
|
||||
}
|
||||
|
||||
void set_no_hlsearch(bool flag)
|
||||
{
|
||||
no_hlsearch = flag;
|
||||
set_vim_var_nr(VV_HLSEARCH, !no_hlsearch && p_hls);
|
||||
}
|
||||
|
||||
/*
|
||||
* ":nohlsearch"
|
||||
*/
|
||||
static void ex_nohlsearch(exarg_T *eap)
|
||||
{
|
||||
SET_NO_HLSEARCH(TRUE);
|
||||
set_no_hlsearch(true);
|
||||
redraw_all_later(SOME_VALID);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user