From 5416232707349d5f24294178f47544f2024b73ed Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 26 Aug 2022 16:58:51 +0100 Subject: patch 9.0.0279: the tiny version has the popup menu but not 'wildmenu' Problem: The tiny version has the popup menu but not 'wildmenu'. Solution: Graduate the wildmenu feature. --- src/drawscreen.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/drawscreen.c') diff --git a/src/drawscreen.c b/src/drawscreen.c index ff0f2eaebd..de091e81d8 100644 --- a/src/drawscreen.c +++ b/src/drawscreen.c @@ -3084,19 +3084,16 @@ redraw_after_callback(int call_update_screen, int do_message) } else if (State & MODE_CMDLINE) { -#ifdef FEAT_WILDMENU if (pum_visible()) cmdline_pum_display(); -#endif + // Don't redraw when in prompt_for_number(). if (cmdline_row > 0) { // Redrawing only works when the screen didn't scroll. Don't clear // wildmenu entries. if (msg_scrolled == 0 -#ifdef FEAT_WILDMENU && wild_menu_showing == 0 -#endif && call_update_screen) update_screen(0); @@ -3241,12 +3238,10 @@ redraw_buf_and_status_later(buf_T *buf, int type) { 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) @@ -3305,7 +3300,6 @@ redraw_statuslines(void) draw_tabline(); } -#if defined(FEAT_WILDMENU) || defined(PROTO) /* * Redraw all status lines at the bottom of frame "frp". */ @@ -3327,7 +3321,6 @@ win_redraw_last_status(frame_T *frp) win_redraw_last_status(frp); } } -#endif /* * Changed something in the current window, at buffer line "lnum", that -- cgit v1.2.3