Mercurial > vim
changeset 11657:a7cd2a53590c v8.0.0711
patch 8.0.0711: cannot build without the wildmenu feature
commit https://github.com/vim/vim/commit/85dad2c815aaef69aa948fb17874b3825dd72def
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jul 12 21:12:43 2017 +0200
patch 8.0.0711: cannot build without the wildmenu feature
Problem: Cannot build without the wildmenu feature.
Solution: Add #ifdef
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 12 Jul 2017 21:15:03 +0200 |
parents | 807dfed6e2aa |
children | 8486d843ab52 |
files | src/screen.c src/version.c |
diffstat | 2 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/screen.c +++ b/src/screen.c @@ -275,10 +275,12 @@ redraw_buf_and_status_later(buf_T *buf, { win_T *wp; +#ifdef FEAT_WILDMENU if (wild_menu_showing != 0) /* Don't redraw while the command line completion is displayed, it * would disappear. */ return; +#endif FOR_ALL_WINDOWS(wp) { if (wp->w_buffer == buf) @@ -450,7 +452,11 @@ redraw_after_callback(void) { /* Redrawing only works when the screen didn't scroll. Don't clear * wildmenu entries. */ - if (msg_scrolled == 0 && wild_menu_showing == 0) + if (msg_scrolled == 0 +#ifdef FEAT_WILDMENU + && wild_menu_showing == 0 +#endif + ) update_screen(0); /* Redraw in the same position, so that the user can continue * editing the command. */