patch 8.1.1452: line and col property of popup windows not properly checked
Problem: Line and col property of popup windows not properly checked.
Solution: Check for "+" or "-" sign.
diff --git a/src/window.c b/src/window.c
index f4ef983..d293bad 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1368,6 +1368,9 @@
win_copy_options(oldp, newp);
}
+/*
+ * Return TRUE if "win" is a global popup or a popup in the current tab page.
+ */
static int
win_valid_popup(win_T *win UNUSED)
{
@@ -1418,6 +1421,11 @@
if (wp == win)
return TRUE;
}
+#ifdef FEAT_TEXT_PROP
+ for (wp = tp->tp_first_popupwin; wp != NULL; wp = wp->w_next)
+ if (wp == win)
+ return TRUE;
+#endif
}
return win_valid_popup(win);
}