summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-07-28 15:55:32 +0200
committerBram Moolenaar <Bram@vim.org>2017-07-28 15:55:32 +0200
commit93723a4ef18f260b82d89759db2f1eeae730c4ec (patch)
treec8d39cff0185566b78b1e9b53dec745b50ec055d
parent1a0f2005002a9993ba7313d1978fa2043314f8b8 (diff)
patch 8.0.0793: using wrong terminal name for terminal windowv8.0.0793
Problem: Using wrong terminal name for terminal window. Solution: When 'term' starts with "xterm" use it for $TERM in a terminal window.
-rw-r--r--src/os_unix.c3
-rw-r--r--src/version.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index f2ab7b15e2..8f51e68cac 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -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();
diff --git a/src/version.c b/src/version.c
index 3b45c9482b..5fc0dbf914 100644
--- a/src/version.c
+++ b/src/version.c
@@ -770,6 +770,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 793,
+/**/
792,
/**/
791,