1
0
forked from aniani/vim

patch 7.4.786

Problem:    It is not possible for a plugin to adjust to a changed setting.
Solution:   Add the OptionSet autocommand event. (Christian Brabandt)
This commit is contained in:
Bram Moolenaar
2015-07-17 17:38:22 +02:00
parent 34d72d4b6c
commit 537443018d
16 changed files with 354 additions and 5 deletions

View File

@@ -1335,6 +1335,7 @@ enum auto_event
EVENT_TEXTCHANGED, /* text was modified */
EVENT_TEXTCHANGEDI, /* text was modified in Insert mode*/
EVENT_CMDUNDEFINED, /* command undefined */
EVENT_OPTIONSET, /* option was set */
NUM_EVENTS /* MUST be the last one */
};
@@ -1898,7 +1899,10 @@ typedef int proftime_T; /* dummy for function prototypes */
#define VV_WINDOWID 56
#define VV_PROGPATH 57
#define VV_COMPLETED_ITEM 58
#define VV_LEN 59 /* number of v: vars */
#define VV_OPTION_NEW 59
#define VV_OPTION_OLD 60
#define VV_OPTION_TYPE 61
#define VV_LEN 62 /* number of v: vars */
#ifdef FEAT_CLIPBOARD