0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.1.1582: cannot build with +textprop but without +timers

Problem:    Cannot build with +textprop but without +timers.
Solution:   Add #ifdef. (Ola Söder, closes #4574)
This commit is contained in:
Bram Moolenaar
2019-06-23 01:03:51 +02:00
parent 7a39dd7f00
commit 0fcf26ba4f
2 changed files with 4 additions and 0 deletions

View File

@@ -1051,8 +1051,10 @@ popup_create(typval_T *argvars, typval_T *rettv, create_type_T type)
// Deal with options.
apply_options(wp, argvars[1].vval.v_dict);
#ifdef FEAT_TIMERS
if (type == TYPE_NOTIFICATION && wp->w_popup_timer == NULL)
popup_add_timeout(wp, 3000);
#endif
popup_adjust_position(wp);