summaryrefslogtreecommitdiff
path: root/src/structs.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-02-10 16:19:32 +0100
committerBram Moolenaar <Bram@vim.org>2018-02-10 16:19:32 +0100
commit9b56a57cdae31f7a2c85d440392bf63d3253a158 (patch)
treec398e599f330084126ba3b9cdc3ef0e86ab8be1c /src/structs.h
parentb301f6b950975b9d7ae87a4f551b32bba63ccdcf (diff)
downloadvim-git-9b56a57cdae31f7a2c85d440392bf63d3253a158.tar.gz
patch 8.0.1493: completion items cannot be annotatedv8.0.1493
Problem: Completion items cannot be annotated. Solution: Add a "user_data" entry to the completion item. (Ben Jackson, coses #2608, closes #2508)
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/structs.h b/src/structs.h
index 6aaccc511..abfb73176 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -3240,11 +3240,12 @@ typedef struct
/*
* Array indexes used for cptext argument of ins_compl_add().
*/
-#define CPT_ABBR 0 /* "abbr" */
-#define CPT_MENU 1 /* "menu" */
-#define CPT_KIND 2 /* "kind" */
-#define CPT_INFO 3 /* "info" */
-#define CPT_COUNT 4 /* Number of entries */
+#define CPT_ABBR 0 /* "abbr" */
+#define CPT_MENU 1 /* "menu" */
+#define CPT_KIND 2 /* "kind" */
+#define CPT_INFO 3 /* "info" */
+#define CPT_USER_DATA 4 /* "user data" */
+#define CPT_COUNT 5 /* Number of entries */
typedef struct {
UINT32_T total[2];