Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
16801:2d9d64daf580 | 16802:f5487021fdad |
---|---|
28 wp->w_maxheight = dict_get_number(dict, (char_u *)"maxheight"); | 28 wp->w_maxheight = dict_get_number(dict, (char_u *)"maxheight"); |
29 wp->w_winrow = dict_get_number(dict, (char_u *)"line"); | 29 wp->w_winrow = dict_get_number(dict, (char_u *)"line"); |
30 wp->w_wincol = dict_get_number(dict, (char_u *)"col"); | 30 wp->w_wincol = dict_get_number(dict, (char_u *)"col"); |
31 wp->w_zindex = dict_get_number(dict, (char_u *)"zindex"); | 31 wp->w_zindex = dict_get_number(dict, (char_u *)"zindex"); |
32 | 32 |
33 #if defined(FEAT_TIMERS) | |
33 // Add timer to close the popup after some time. | 34 // Add timer to close the popup after some time. |
34 nr = dict_get_number(dict, (char_u *)"time"); | 35 nr = dict_get_number(dict, (char_u *)"time"); |
35 if (nr > 0) | 36 if (nr > 0) |
36 { | 37 { |
37 char_u cbbuf[50]; | 38 char_u cbbuf[50]; |
47 vim_strsave(partial_name(tv.vval.v_partial)); | 48 vim_strsave(partial_name(tv.vval.v_partial)); |
48 func_ref(wp->w_popup_timer->tr_callback); | 49 func_ref(wp->w_popup_timer->tr_callback); |
49 wp->w_popup_timer->tr_partial = tv.vval.v_partial; | 50 wp->w_popup_timer->tr_partial = tv.vval.v_partial; |
50 } | 51 } |
51 } | 52 } |
53 #endif | |
52 | 54 |
53 } | 55 } |
54 | 56 |
55 /* | 57 /* |
56 * popup_create({text}, {options}) | 58 * popup_create({text}, {options}) |