diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-12-16 18:27:02 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-12-16 18:27:02 +0100 |
commit | 7e1652c63c96585b9e2235c195a3c322b1f11595 (patch) | |
tree | ed90a314ef58909b1c9dfbd45422f1a3557de278 /src/vim.h | |
parent | 6621605eb97cf5fbc481282fd4d349a76e168f16 (diff) | |
download | vim-git-7e1652c63c96585b9e2235c195a3c322b1f11595.tar.gz |
patch 8.0.1394: cannot intercept a yank commandv8.0.1394
Problem: Cannot intercept a yank command.
Solution: Add the TextYankPost autocommand event. (Philippe Vaucher et al.,
closes #2333)
Diffstat (limited to 'src/vim.h')
-rw-r--r-- | src/vim.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1339,6 +1339,7 @@ enum auto_event EVENT_TEXTCHANGEDI, /* text was modified in Insert mode*/ EVENT_CMDUNDEFINED, /* command undefined */ EVENT_OPTIONSET, /* option was set */ + EVENT_TEXTYANKPOST, /* after some text was yanked */ NUM_EVENTS /* MUST be the last one */ }; @@ -1988,7 +1989,8 @@ typedef int sock_T; #define VV_TERMU7RESP 83 #define VV_TERMSTYLERESP 84 #define VV_TERMBLINKRESP 85 -#define VV_LEN 86 /* number of v: vars */ +#define VV_EVENT 86 +#define VV_LEN 87 /* number of v: vars */ /* used for v_number in VAR_SPECIAL */ #define VVAL_FALSE 0L |