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)
diff --git a/src/vim.h b/src/vim.h
index 4e36f3d..809f312 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -1335,6 +1335,7 @@
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 @@
#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