aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r--src/nvim/ex_docmd.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index b880ec4f6d..85ec4efd3a 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -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);
}