Skip to content

Commit 93723a4

Browse files
committed
patch 8.0.0793: using wrong terminal name for terminal window
Problem: Using wrong terminal name for terminal window. Solution: When 'term' starts with "xterm" use it for $TERM in a terminal window.
1 parent 1a0f200 commit 93723a4

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/os_unix.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5276,7 +5276,8 @@ mch_job_start(char **argv, job_T *job, jobopt_T *options)
52765276
set_child_environment(
52775277
(long)options->jo_term_rows,
52785278
(long)options->jo_term_cols,
5279-
"xterm");
5279+
STRNCMP(T_NAME, "xterm", 5) == 0
5280+
? (char *)T_NAME : "xterm");
52805281
else
52815282
# endif
52825283
set_default_child_environment();

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,8 @@ static char *(features[]) =
769769

770770
static int included_patches[] =
771771
{ /* Add new patch number below this line */
772+
/**/
773+
793,
772774
/**/
773775
792,
774776
/**/

0 commit comments

Comments
 (0)