API/UI: Allow UI to set PUM position and size, and pass the position to CompleteChanged

This commit is contained in:
Yatao Li
2020-02-24 16:40:58 +08:00
parent d90a92bcd3
commit 630ec6cfb8
5 changed files with 126 additions and 4 deletions

View File

@@ -53,7 +53,12 @@ struct ui_t {
bool ui_ext[kUIExtCount]; ///< Externalized UI capabilities.
int width;
int height;
int pum_nlines; /// actual nr. lines shown in PUM
bool pum_pos; /// UI reports back pum position?
int pum_row;
int pum_col;
int pum_height;
int pum_width;
void *data;
#ifdef INCLUDE_GENERATED_DECLARATIONS