Mercurial > vim
diff src/window.c @ 16902:23645f9a5ce2 v8.1.1452
patch 8.1.1452: line and col property of popup windows not properly checked
commit https://github.com/vim/vim/commit/b0ebbda06cf1a4a7c40cb274529c4c53de534e32
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 2 16:51:21 2019 +0200
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 02 Jun 2019 17:00:05 +0200 |
parents | 5131023c5728 |
children | d99805d25b42 |
line wrap: on
line diff
--- a/src/window.c +++ b/src/window.c @@ -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); }