]> granicus.if.org Git - vim/commitdiff
patch 8.0.0793: using wrong terminal name for terminal window v8.0.0793
authorBram Moolenaar <Bram@vim.org>
Fri, 28 Jul 2017 13:55:32 +0000 (15:55 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 28 Jul 2017 13:55:32 +0000 (15:55 +0200)
Problem:    Using wrong terminal name for terminal window.
Solution:   When 'term' starts with "xterm" use it for $TERM in a terminal
            window.

src/os_unix.c
src/version.c

index f2ab7b15e2ba7b7c43b8dc65751fa7aaa5213eaf..8f51e68cace6da6c65e94d92dee98725e8a0db97 100644 (file)
@@ -5276,7 +5276,8 @@ mch_job_start(char **argv, job_T *job, jobopt_T *options)
            set_child_environment(
                    (long)options->jo_term_rows,
                    (long)options->jo_term_cols,
-                   "xterm");
+                   STRNCMP(T_NAME, "xterm", 5) == 0
+                                                  ? (char *)T_NAME : "xterm");
        else
 # endif
            set_default_child_environment();
index 3b45c9482b4c41522d0d994c516e8a0e0eb4feef..5fc0dbf914ef6d7f29a5684200af7592f2215ec7 100644 (file)
@@ -769,6 +769,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    793,
 /**/
     792,
 /**/