summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-05-26 20:10:06 +0200
committerBram Moolenaar <Bram@vim.org>2019-05-26 20:10:06 +0200
commit51fe3b14f63da2b985bcd7b4c50fbe34ae84ea48 (patch)
tree9dc360f92eda48d982526415ba89385023d12f36 /src/window.c
parent076073950c44ea0e35bc39d539dc7ab41bf9c7ec (diff)
downloadvim-git-51fe3b14f63da2b985bcd7b4c50fbe34ae84ea48.tar.gz
patch 8.1.1402: "timer" option of popup windows not supportedv8.1.1402
Problem: "timer" option of popup windows not supported. Solution: Implement the "timer" option. (Yasuhiro Matsumoto, closes #4439)
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/window.c b/src/window.c
index bc8dac0b4..2cd35a4cb 100644
--- a/src/window.c
+++ b/src/window.c
@@ -3670,12 +3670,8 @@ free_tabpage(tabpage_T *tp)
diff_clear(tp);
# endif
# ifdef FEAT_TEXT_PROP
- {
- win_T *wp;
-
- while (tp->tp_first_popupwin != NULL)
- popup_close_tabpage(tp, tp->tp_first_popupwin->w_id);
- }
+ while (tp->tp_first_popupwin != NULL)
+ popup_close_tabpage(tp, tp->tp_first_popupwin->w_id);
#endif
for (idx = 0; idx < SNAP_COUNT; ++idx)
clear_snapshot(tp, idx);
@@ -4871,6 +4867,8 @@ win_unlisted(win_T *wp)
win_free_popup(win_T *win)
{
win_close_buffer(win, TRUE, FALSE);
+ if (win->w_popup_timer != NULL)
+ stop_timer(win->w_popup_timer);
vim_free(win->w_frame);
win_free(win, NULL);
}