]> granicus.if.org Git - vim/commitdiff
patch 8.1.1582: cannot build with +textprop but without +timers v8.1.1582
authorBram Moolenaar <Bram@vim.org>
Sat, 22 Jun 2019 23:03:51 +0000 (01:03 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 22 Jun 2019 23:03:51 +0000 (01:03 +0200)
Problem:    Cannot build with +textprop but without +timers.
Solution:   Add #ifdef. (Ola Söder, closes #4574)

src/popupwin.c
src/version.c

index b0b67b1919b613229770d641152076a048d54492..d675a4484a5378039798548c1b0d9bff26af6c8a 100644 (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);
 
index 042c9c123bbf31362e57102786318e8065940c0b..2af29122c2cdfc132cced47476b7809566074680 100644 (file)
@@ -777,6 +777,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1582,
 /**/
     1581,
 /**/