1
0
forked from aniani/vim

patch 8.0.1493: completion items cannot be annotated

Problem:    Completion items cannot be annotated.
Solution:   Add a "user_data" entry to the completion item. (Ben Jackson,
            coses #2608, closes #2508)
This commit is contained in:
Bram Moolenaar
2018-02-10 16:19:32 +01:00
parent b301f6b950
commit 9b56a57cda
5 changed files with 137 additions and 6 deletions

View File

@@ -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];