]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.0281: build failure without the +eval feature v9.0.0281
authorBram Moolenaar <Bram@vim.org>
Fri, 26 Aug 2022 18:58:49 +0000 (19:58 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 26 Aug 2022 18:58:49 +0000 (19:58 +0100)
Problem:    Build failure without the +eval feature.
Solution:   Add #ifdef.

src/cmdexpand.c
src/version.c

index a62c6abf619af39681006ac6ffea241eca8f0a4a..5cdb1beab5a5a4effe100cc50c656dde0c990b6d 100644 (file)
@@ -3613,16 +3613,20 @@ wildmenu_process_key(cmdline_info_T *cclp, int key, expand_T *xp)
  * Free expanded names when finished walking through the matches
  */
     void
-wildmenu_cleanup(cmdline_info_T *cclp)
+wildmenu_cleanup(cmdline_info_T *cclp UNUSED)
 {
     int skt = KeyTyped;
+#ifdef FEAT_EVAL
     int old_RedrawingDisabled = RedrawingDisabled;
+#endif
 
     if (!p_wmnu || wild_menu_showing == 0)
        return;
 
+#ifdef FEAT_EVAL
     if (cclp->input_fn)
        RedrawingDisabled = 0;
+#endif
 
     if (wild_menu_showing == WM_SCROLLED)
     {
@@ -3647,8 +3651,10 @@ wildmenu_cleanup(cmdline_info_T *cclp)
     }
     KeyTyped = skt;
     wild_menu_showing = 0;
+#ifdef FEAT_EVAL
     if (cclp->input_fn)
        RedrawingDisabled = old_RedrawingDisabled;
+#endif
 }
 
 #if defined(FEAT_EVAL) || defined(PROTO)
index 2247589835c0d8543b91d82a4f6414a6f2f58052..ae33d6dac394e8aab3b4a73380cbf144baf0b573 100644 (file)
@@ -707,6 +707,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    281,
 /**/
     280,
 /**/