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

patch 9.0.0281: build failure without the +eval feature

Problem:    Build failure without the +eval feature.
Solution:   Add #ifdef.
This commit is contained in:
Bram Moolenaar
2022-08-26 19:58:49 +01:00
parent 7dd543246a
commit 58dcbf1c65
2 changed files with 9 additions and 1 deletions

View 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 * Free expanded names when finished walking through the matches
*/ */
void void
wildmenu_cleanup(cmdline_info_T *cclp) wildmenu_cleanup(cmdline_info_T *cclp UNUSED)
{ {
int skt = KeyTyped; int skt = KeyTyped;
#ifdef FEAT_EVAL
int old_RedrawingDisabled = RedrawingDisabled; int old_RedrawingDisabled = RedrawingDisabled;
#endif
if (!p_wmnu || wild_menu_showing == 0) if (!p_wmnu || wild_menu_showing == 0)
return; return;
#ifdef FEAT_EVAL
if (cclp->input_fn) if (cclp->input_fn)
RedrawingDisabled = 0; RedrawingDisabled = 0;
#endif
if (wild_menu_showing == WM_SCROLLED) if (wild_menu_showing == WM_SCROLLED)
{ {
@@ -3647,8 +3651,10 @@ wildmenu_cleanup(cmdline_info_T *cclp)
} }
KeyTyped = skt; KeyTyped = skt;
wild_menu_showing = 0; wild_menu_showing = 0;
#ifdef FEAT_EVAL
if (cclp->input_fn) if (cclp->input_fn)
RedrawingDisabled = old_RedrawingDisabled; RedrawingDisabled = old_RedrawingDisabled;
#endif
} }
#if defined(FEAT_EVAL) || defined(PROTO) #if defined(FEAT_EVAL) || defined(PROTO)

View File

@@ -707,6 +707,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
281,
/**/ /**/
280, 280,
/**/ /**/