mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -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:
@@ -12193,14 +12193,23 @@ ex_set(exarg_T *eap)
|
||||
(void)do_set(eap->arg, flags);
|
||||
}
|
||||
|
||||
#ifdef FEAT_SEARCH_EXTRA
|
||||
#if defined(FEAT_SEARCH_EXTRA) || defined(PROTO)
|
||||
void
|
||||
set_no_hlsearch(int flag)
|
||||
{
|
||||
no_hlsearch = flag;
|
||||
# ifdef FEAT_EVAL
|
||||
set_vim_var_nr(VV_HLSEARCH, !no_hlsearch && p_hls);
|
||||
# endif
|
||||
}
|
||||
|
||||
/*
|
||||
* ":nohlsearch"
|
||||
*/
|
||||
static void
|
||||
ex_nohlsearch(exarg_T *eap UNUSED)
|
||||
{
|
||||
SET_NO_HLSEARCH(TRUE);
|
||||
set_no_hlsearch(TRUE);
|
||||
redraw_all_later(SOME_VALID);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user