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().
diff --git a/src/structs.h b/src/structs.h
index 9f63949..da3162e 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -1982,6 +1982,15 @@
// # 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 @@
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