diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-06-02 16:51:21 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-06-02 16:51:21 +0200 |
commit | b0ebbda06cf1a4a7c40cb274529c4c53de534e32 (patch) | |
tree | 8f0a2b35f078b542cb168e58d273304ee18efeed /src/window.c | |
parent | ca2f7037c1a53bdbb6f5dc0a2f92d50020e062cc (diff) | |
download | vim-git-b0ebbda06cf1a4a7c40cb274529c4c53de534e32.tar.gz |
patch 8.1.1452: line and col property of popup windows not properly checkedv8.1.1452
Problem: Line and col property of popup windows not properly checked.
Solution: Check for "+" or "-" sign.
Diffstat (limited to 'src/window.c')
-rw-r--r-- | src/window.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c index f4ef983c6..d293bad44 100644 --- 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); } |