0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

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.
This commit is contained in:
Bram Moolenaar
2019-06-02 16:51:21 +02:00
parent ca2f7037c1
commit b0ebbda06c
6 changed files with 133 additions and 4 deletions

View File

@@ -1368,6 +1368,9 @@ win_init_some(win_T *newp, win_T *oldp)
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 @@ win_valid_any_tab(win_T *win)
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);
}