patch 8.1.1542: an OptionSet autocommand does not get enough info
Problem: An OptionSet autocommand does not get enough info.
Solution: Add v:option_command, v:option_oldlocal and v:option_oldglobal.
(Latrice Wilgus, closes #4118)
diff --git a/src/vim.h b/src/vim.h
index d6bc6c3..481d065 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -1935,41 +1935,44 @@
#define VV_COMPLETED_ITEM 60
#define VV_OPTION_NEW 61
#define VV_OPTION_OLD 62
-#define VV_OPTION_TYPE 63
-#define VV_ERRORS 64
-#define VV_FALSE 65
-#define VV_TRUE 66
-#define VV_NULL 67
-#define VV_NONE 68
-#define VV_VIM_DID_ENTER 69
-#define VV_TESTING 70
-#define VV_TYPE_NUMBER 71
-#define VV_TYPE_STRING 72
-#define VV_TYPE_FUNC 73
-#define VV_TYPE_LIST 74
-#define VV_TYPE_DICT 75
-#define VV_TYPE_FLOAT 76
-#define VV_TYPE_BOOL 77
-#define VV_TYPE_NONE 78
-#define VV_TYPE_JOB 79
-#define VV_TYPE_CHANNEL 80
-#define VV_TYPE_BLOB 81
-#define VV_TERMRFGRESP 82
-#define VV_TERMRBGRESP 83
-#define VV_TERMU7RESP 84
-#define VV_TERMSTYLERESP 85
-#define VV_TERMBLINKRESP 86
-#define VV_EVENT 87
-#define VV_VERSIONLONG 88
-#define VV_LEN 89 // number of v: vars
+#define VV_OPTION_OLDLOCAL 63
+#define VV_OPTION_OLDGLOBAL 64
+#define VV_OPTION_COMMAND 65
+#define VV_OPTION_TYPE 66
+#define VV_ERRORS 67
+#define VV_FALSE 68
+#define VV_TRUE 69
+#define VV_NULL 70
+#define VV_NONE 71
+#define VV_VIM_DID_ENTER 72
+#define VV_TESTING 73
+#define VV_TYPE_NUMBER 74
+#define VV_TYPE_STRING 75
+#define VV_TYPE_FUNC 76
+#define VV_TYPE_LIST 77
+#define VV_TYPE_DICT 78
+#define VV_TYPE_FLOAT 79
+#define VV_TYPE_BOOL 80
+#define VV_TYPE_NONE 81
+#define VV_TYPE_JOB 82
+#define VV_TYPE_CHANNEL 83
+#define VV_TYPE_BLOB 84
+#define VV_TERMRFGRESP 85
+#define VV_TERMRBGRESP 86
+#define VV_TERMU7RESP 87
+#define VV_TERMSTYLERESP 88
+#define VV_TERMBLINKRESP 89
+#define VV_EVENT 90
+#define VV_VERSIONLONG 91
+#define VV_LEN 92 // number of v: vars
-/* used for v_number in VAR_SPECIAL */
+// used for v_number in VAR_SPECIAL
#define VVAL_FALSE 0L
#define VVAL_TRUE 1L
#define VVAL_NONE 2L
#define VVAL_NULL 3L
-/* Type values for type(). */
+// Type values for type().
#define VAR_TYPE_NUMBER 0
#define VAR_TYPE_STRING 1
#define VAR_TYPE_FUNC 2