changeset 11668:26265ac3b7ed v8.0.0717

patch 8.0.0717: terminal feature precence unclear commit https://github.com/vim/vim/commit/26e8558e74fc1701b57f092cc2c3dbf879cf1af3 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 15 20:05:54 2017 +0200 patch 8.0.0717: terminal feature precence unclear Problem: Terminal feature not included in :version output. Solution: Add +terminal or -terminal.
author Christian Brabandt <cb@256bit.org>
date Sat, 15 Jul 2017 20:15:03 +0200
parents 88d6ae605f3f
children 20bedd70c837
files src/terminal.c src/version.c
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- 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
@@ -765,6 +770,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    717,
+/**/
     716,
 /**/
     715,