Mercurial > vim
changeset 29886:3ef1fe06690d v9.0.0281
patch 9.0.0281: build failure without the +eval feature
Commit: https://github.com/vim/vim/commit/58dcbf1c6586d3873702e035b47829178a91250e
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Aug 26 19:58:49 2022 +0100
patch 9.0.0281: build failure without the +eval feature
Problem: Build failure without the +eval feature.
Solution: Add #ifdef.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 26 Aug 2022 21:00:06 +0200 |
parents | f00c56ee8118 |
children | 24c45f87cda4 |
files | src/cmdexpand.c src/version.c |
diffstat | 2 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/cmdexpand.c +++ b/src/cmdexpand.c @@ -3613,16 +3613,20 @@ wildmenu_process_key(cmdline_info_T *ccl * 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)