summaryrefslogtreecommitdiff
path: root/src/vim.h
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/vim.h
parente5878f4be9f0cb6719220fa17f113fa24b1f3039 (diff)
downloadvim-git-8050efa07d7a66e8e2e88253d079a106a7f2601a.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/vim.h')
-rw-r--r--src/vim.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/vim.h b/src/vim.h
index 3d61f3a35..4d8d5e82f 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -1864,9 +1864,10 @@ typedef int proftime_T; /* dummy for function prototypes */
#define VV_MOUSE_COL 51
#define VV_OP 52
#define VV_SEARCHFORWARD 53
-#define VV_OLDFILES 54
-#define VV_WINDOWID 55
-#define VV_LEN 56 /* number of v: vars */
+#define VV_HLSEARCH 54
+#define VV_OLDFILES 55
+#define VV_WINDOWID 56
+#define VV_LEN 57 /* number of v: vars */
#ifdef FEAT_CLIPBOARD
@@ -2246,4 +2247,10 @@ typedef int VimClipboard; /* This is required for the prototypes. */
/* Character used as separated in autoload function/variable names. */
#define AUTOLOAD_CHAR '#'
+#ifdef FEAT_EVAL
+# define SET_NO_HLSEARCH(flag) no_hlsearch = (flag); set_vim_var_nr(VV_HLSEARCH, !no_hlsearch)
+#else
+# define SET_NO_HLSEARCH(flag) no_hlsearch = (flag)
+#endif
+
#endif /* VIM__H */