0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.1.1429: "pos" option of popup window not supported yet

Problem:    "pos" option of popup window not supported yet.
Solution:   Implement the option. Rename popup_getposition() to
            popup_getpos().
This commit is contained in:
Bram Moolenaar
2019-05-30 21:24:26 +02:00
parent cc31ad9f9b
commit ac1f1bc222
5 changed files with 164 additions and 52 deletions

View File

@@ -1982,6 +1982,15 @@ typedef struct {
// # define CRYPT_NOT_INPLACE 1
#endif
#ifdef FEAT_TEXT_PROP
typedef enum {
POPPOS_BOTLEFT,
POPPOS_TOPLEFT,
POPPOS_BOTRIGHT,
POPPOS_TOPRIGHT,
POPPOS_CENTER
} poppos_T;
#endif
/*
* These are items normally related to a buffer. But when using ":ownsyntax"
@@ -2873,7 +2882,8 @@ struct window_S
int w_vsep_width; /* Number of separator columns (0 or 1). */
pos_save_T w_save_cursor; /* backup of cursor pos and topline */
#ifdef FEAT_TEXT_PROP
int w_popup_flags; // PFL_ values
int w_popup_flags; // POPF_ values
poppos_T w_popup_pos;
int w_zindex;
int w_minheight; // "minheight" for popup window
int w_minwidth; // "minwidth" for popup window