summaryrefslogtreecommitdiff
path: root/src/popupwin.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-05-26 20:44:10 +0200
committerBram Moolenaar <Bram@vim.org>2019-05-26 20:44:10 +0200
commit35d5af6c0b618aef9ca87b05b2e184934e47d916 (patch)
tree13e1e05a10a50c1d95852f2f8846ec613a105252 /src/popupwin.c
parent51fe3b14f63da2b985bcd7b4c50fbe34ae84ea48 (diff)
downloadvim-git-35d5af6c0b618aef9ca87b05b2e184934e47d916.tar.gz
patch 8.1.1403: cannot build without the timer featurev8.1.1403
Problem: Cannot build without the timer feature. Solution: Add #ifdef.
Diffstat (limited to 'src/popupwin.c')
-rw-r--r--src/popupwin.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/popupwin.c b/src/popupwin.c
index f08f78435..116efcb23 100644
--- a/src/popupwin.c
+++ b/src/popupwin.c
@@ -30,6 +30,7 @@ apply_options(win_T *wp, buf_T *buf UNUSED, dict_T *dict)
wp->w_wincol = dict_get_number(dict, (char_u *)"col");
wp->w_zindex = dict_get_number(dict, (char_u *)"zindex");
+#if defined(FEAT_TIMERS)
// Add timer to close the popup after some time.
nr = dict_get_number(dict, (char_u *)"time");
if (nr > 0)
@@ -49,6 +50,7 @@ apply_options(win_T *wp, buf_T *buf UNUSED, dict_T *dict)
wp->w_popup_timer->tr_partial = tv.vval.v_partial;
}
}
+#endif
}