diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-11-08 04:30:20 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-11-08 04:30:20 +0100 |
commit | 8050efa07d7a66e8e2e88253d079a106a7f2601a (patch) | |
tree | 237a229f5815f2a54523b6122691b52dd2d0cadb /src/vim.h | |
parent | e5878f4be9f0cb6719220fa17f113fa24b1f3039 (diff) | |
download | vim-8050efa07d7a66e8e2e88253d079a106a7f2601a.zip |
updated for version 7.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.h | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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 */ |