comparison src/screen.c @ 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 8014350fe51a
children 3b2afa2b77b3
comparison
equal deleted inserted replaced
11656:807dfed6e2aa 11657:a7cd2a53590c
273 void 273 void
274 redraw_buf_and_status_later(buf_T *buf, int type) 274 redraw_buf_and_status_later(buf_T *buf, int type)
275 { 275 {
276 win_T *wp; 276 win_T *wp;
277 277
278 #ifdef FEAT_WILDMENU
278 if (wild_menu_showing != 0) 279 if (wild_menu_showing != 0)
279 /* Don't redraw while the command line completion is displayed, it 280 /* Don't redraw while the command line completion is displayed, it
280 * would disappear. */ 281 * would disappear. */
281 return; 282 return;
283 #endif
282 FOR_ALL_WINDOWS(wp) 284 FOR_ALL_WINDOWS(wp)
283 { 285 {
284 if (wp->w_buffer == buf) 286 if (wp->w_buffer == buf)
285 { 287 {
286 redraw_win_later(wp, type); 288 redraw_win_later(wp, type);
448 ; /* do nothing */ 450 ; /* do nothing */
449 else if (State & CMDLINE) 451 else if (State & CMDLINE)
450 { 452 {
451 /* Redrawing only works when the screen didn't scroll. Don't clear 453 /* Redrawing only works when the screen didn't scroll. Don't clear
452 * wildmenu entries. */ 454 * wildmenu entries. */
453 if (msg_scrolled == 0 && wild_menu_showing == 0) 455 if (msg_scrolled == 0
456 #ifdef FEAT_WILDMENU
457 && wild_menu_showing == 0
458 #endif
459 )
454 update_screen(0); 460 update_screen(0);
455 /* Redraw in the same position, so that the user can continue 461 /* Redraw in the same position, so that the user can continue
456 * editing the command. */ 462 * editing the command. */
457 redrawcmdline_ex(FALSE); 463 redrawcmdline_ex(FALSE);
458 } 464 }