summaryrefslogtreecommitdiff
path: root/src/search.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-11-08 04:30:20 +0100
committerBram Moolenaar <Bram@vim.org>2013-11-08 04:30:20 +0100
commit8050efa07d7a66e8e2e88253d079a106a7f2601a (patch)
tree237a229f5815f2a54523b6122691b52dd2d0cadb /src/search.c
parente5878f4be9f0cb6719220fa17f113fa24b1f3039 (diff)
downloadvim-git-7.4.079.tar.gz
updated for version 7.4.079v7.4.079
Problem: A script cannot detect whether 'hlsearch' highlighting is actually displayed. Solution: Add the "v:hlsearch" variable. (ZyX)
Diffstat (limited to 'src/search.c')
-rw-r--r--src/search.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/search.c b/src/search.c
index d517c6052..2fb7624c4 100644
--- a/src/search.c
+++ b/src/search.c
@@ -289,7 +289,7 @@ save_re_pat(idx, pat, magic)
/* If 'hlsearch' set and search pat changed: need redraw. */
if (p_hls)
redraw_all_later(SOME_VALID);
- no_hlsearch = FALSE;
+ SET_NO_HLSEARCH(FALSE);
#endif
}
}
@@ -333,7 +333,7 @@ restore_search_patterns()
spats[1] = saved_spats[1];
last_idx = saved_last_idx;
# ifdef FEAT_SEARCH_EXTRA
- no_hlsearch = saved_no_hlsearch;
+ SET_NO_HLSEARCH(saved_no_hlsearch);
# endif
}
}
@@ -1148,7 +1148,7 @@ do_search(oap, dirc, pat, count, options, tm)
if (no_hlsearch && !(options & SEARCH_KEEP))
{
redraw_all_later(SOME_VALID);
- no_hlsearch = FALSE;
+ SET_NO_HLSEARCH(FALSE);
}
#endif
@@ -5561,7 +5561,9 @@ read_viminfo_search_pattern(virp, force)
spats[idx].off.off = off;
#ifdef FEAT_SEARCH_EXTRA
if (setlast)
- no_hlsearch = !hlsearch_on;
+ {
+ SET_NO_HLSEARCH(!hlsearch_on);
+ }
#endif
}
}