From: Bram Moolenaar Date: Mon, 7 Oct 2019 20:38:58 +0000 (+0200) Subject: patch 8.1.2122: cannot build without terminal feature X-Git-Tag: v8.1.2122 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fbbd102be0f017b316f483893a95e4e78c286c9b;p=vim patch 8.1.2122: cannot build without terminal feature Problem: Cannot build without terminal feature. Solution: Add #ifdef. --- diff --git a/src/version.c b/src/version.c index f4d027534..e207a3710 100644 --- a/src/version.c +++ b/src/version.c @@ -753,6 +753,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2122, /**/ 2121, /**/ diff --git a/src/window.c b/src/window.c index 6174c02fd..0fda9f05c 100644 --- a/src/window.c +++ b/src/window.c @@ -4654,9 +4654,11 @@ win_enter_ext( maketitle(); #endif curwin->w_redr_status = TRUE; +#ifdef FEAT_TERMINAL if (bt_terminal(wp->w_buffer)) // terminal is likely in another mode redraw_mode = TRUE; +#endif redraw_tabline = TRUE; if (restart_edit) redraw_later(VALID); /* causes status line redraw */