From: Bram Moolenaar Date: Sat, 15 Jul 2017 18:05:54 +0000 (+0200) Subject: patch 8.0.0717: terminal feature precence unclear X-Git-Tag: v8.0.0717 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=26e8558e74fc1701b57f092cc2c3dbf879cf1af3;p=vim patch 8.0.0717: terminal feature precence unclear Problem: Terminal feature not included in :version output. Solution: Add +terminal or -terminal. --- diff --git a/src/terminal.c b/src/terminal.c index b653cc24f..b7765cd5e 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -24,7 +24,6 @@ * This will result in screen updates. * * TODO: - * - +terminal in features[] in version.c * - free b_term when closing terminal. * - remove term from first_term list when closing terminal. * - set buffer options to be scratch, hidden, nomodifiable, etc. diff --git a/src/version.c b/src/version.c index 09b3b8560..7f4be7e73 100644 --- a/src/version.c +++ b/src/version.c @@ -618,6 +618,11 @@ static char *(features[]) = #else "-termguicolors", #endif +#ifdef FEAT_TERMINAL + "+terminal", +#else + "-terminal", +#endif #if defined(UNIX) /* only Unix can have terminfo instead of termcap */ # ifdef TERMINFO @@ -764,6 +769,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 717, /**/ 716, /**/