summaryrefslogtreecommitdiff
path: root/src/search.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-04-27 22:53:07 +0200
committerBram Moolenaar <Bram@vim.org>2018-04-27 22:53:07 +0200
commit451fc7b954906069f1830a8092ad85616049a828 (patch)
tree5d39c1b58d958de9a81c08805b3c0673415d22c8 /src/search.c
parent9d34d90210ba52ebaf45973282e5921f5af364c7 (diff)
downloadvim-git-451fc7b954906069f1830a8092ad85616049a828.tar.gz
patch 8.0.1768: SET_NO_HLSEARCH() used in a wrong wayv8.0.1768
Problem: SET_NO_HLSEARCH() used in a wrong way. Solution: Make it a function. (suggested by Dominique Pelle, closes #2850)
Diffstat (limited to 'src/search.c')
-rw-r--r--src/search.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/search.c b/src/search.c
index a34636227..726013e62 100644
--- a/src/search.c
+++ b/src/search.c
@@ -293,7 +293,7 @@ save_re_pat(int idx, char_u *pat, int magic)
/* If 'hlsearch' set and search pat changed: need redraw. */
if (p_hls)
redraw_all_later(SOME_VALID);
- SET_NO_HLSEARCH(FALSE);
+ set_no_hlsearch(FALSE);
#endif
}
}
@@ -336,7 +336,7 @@ restore_search_patterns(void)
spats[1] = saved_spats[1];
#ifdef FEAT_SEARCH_EXTRA
last_idx = saved_last_idx;
- SET_NO_HLSEARCH(saved_no_hlsearch);
+ set_no_hlsearch(saved_no_hlsearch);
#endif
}
}
@@ -387,7 +387,7 @@ restore_last_search_pattern(void)
set_vv_searchforward();
# endif
last_idx = saved_last_idx;
- SET_NO_HLSEARCH(saved_no_hlsearch);
+ set_no_hlsearch(saved_no_hlsearch);
}
char_u *
@@ -1282,7 +1282,7 @@ do_search(
if (no_hlsearch && !(options & SEARCH_KEEP))
{
redraw_all_later(SOME_VALID);
- SET_NO_HLSEARCH(FALSE);
+ set_no_hlsearch(FALSE);
}
#endif
@@ -5757,9 +5757,7 @@ read_viminfo_search_pattern(vir_T *virp, int force)
spats[idx].off.off = off;
#ifdef FEAT_SEARCH_EXTRA
if (setlast)
- {
- SET_NO_HLSEARCH(!hlsearch_on);
- }
+ set_no_hlsearch(!hlsearch_on);
#endif
}
}