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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user