summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-08-25 22:25:02 +0200
committerBram Moolenaar <Bram@vim.org>2019-08-25 22:25:02 +0200
commit12034e22dd80cf533ac1c681be521ab299383f63 (patch)
treeac564b63f00ae8f37c7fc3f8f5c45e3e6b552213 /src/window.c
parent307c5a5bb77c3728dfab06c30e9f786309c63f74 (diff)
downloadvim-git-12034e22dd80cf533ac1c681be521ab299383f63.tar.gz
patch 8.1.1928: popup windows don't move with the text when making changesv8.1.1928
Problem: Popup windows don't move with the text when making changes. Solution: Add the 'textprop" property to the popup window options, position the popup relative to a text property. (closes #4560) No tests yet.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c
index 8da5ed0c9..0507cee66 100644
--- a/src/window.c
+++ b/src/window.c
@@ -2522,6 +2522,10 @@ win_close(win_T *win, int free_buf)
out_flush();
#endif
+#ifdef FEAT_TEXT_PROP
+ if (popup_win_closed(win) && !win_valid(win))
+ return FAIL;
+#endif
win_close_buffer(win, free_buf ? DOBUF_UNLOAD : 0, TRUE);
if (only_one_window() && win_valid(win) && win->w_buffer == NULL