Mercurial > vim
diff src/popupwin.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 | 306766ed0f70 |
line wrap: on
line diff
--- a/src/popupwin.c +++ b/src/popupwin.c @@ -30,6 +30,7 @@ apply_options(win_T *wp, buf_T *buf UNUS 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 UNUS wp->w_popup_timer->tr_partial = tv.vval.v_partial; } } +#endif }