diff options
Diffstat (limited to 'src/nvim/popupmenu.h')
-rw-r--r-- | src/nvim/popupmenu.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/nvim/popupmenu.h b/src/nvim/popupmenu.h index 851ad31486..08b791c509 100644 --- a/src/nvim/popupmenu.h +++ b/src/nvim/popupmenu.h @@ -1,6 +1,8 @@ #ifndef NVIM_POPUPMENU_H #define NVIM_POPUPMENU_H +#include <stdbool.h> + #include "nvim/grid_defs.h" #include "nvim/macros.h" #include "nvim/types.h" @@ -8,14 +10,22 @@ /// Used for popup menu items. typedef struct { - char_u *pum_text; // main menu text - char_u *pum_kind; // extra kind text (may be truncated) - char_u *pum_extra; // extra menu text (may be truncated) - char_u *pum_info; // extra info + char *pum_text; // main menu text + char *pum_kind; // extra kind text (may be truncated) + char *pum_extra; // extra menu text (may be truncated) + char *pum_info; // extra info } pumitem_T; EXTERN ScreenGrid pum_grid INIT(= SCREEN_GRID_INIT); +/// state for pum_ext_select_item. +EXTERN struct { + bool active; + int item; + bool insert; + bool finish; +} pum_want; + #ifdef INCLUDE_GENERATED_DECLARATIONS # include "popupmenu.h.generated.h" #endif |