Mercurial > vim
diff src/window.c @ 16802:f5487021fdad v8.1.1403
patch 8.1.1403: cannot build without the timer feature
commit https://github.com/vim/vim/commit/35d5af6c0b618aef9ca87b05b2e184934e47d916
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun May 26 20:44:10 2019 +0200
patch 8.1.1403: cannot build without the timer feature
Problem: Cannot build without the timer feature.
Solution: Add #ifdef.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 26 May 2019 20:45:05 +0200 |
parents | 12e3a3afdb6a |
children | ce04ebdf26b8 |
line wrap: on
line diff
--- a/src/window.c +++ b/src/window.c @@ -4859,6 +4859,7 @@ win_unlisted(win_T *wp) return wp == aucmd_win || bt_popup(wp->w_buffer); } +#if defined(FEAT_TEXT_PROP) || defined(PROTO) /* * Free a popup window. This does not take the window out of the window list * and assumes there is only one toplevel frame, no split. @@ -4867,11 +4868,14 @@ win_unlisted(win_T *wp) win_free_popup(win_T *win) { win_close_buffer(win, TRUE, FALSE); +# if defined(FEAT_TIMERS) if (win->w_popup_timer != NULL) stop_timer(win->w_popup_timer); +# endif vim_free(win->w_frame); win_free(win, NULL); } +#endif /* * Append window "wp" in the window list after window "after".