Mercurial > vim
changeset 11826:bf8cfdcdbdd8 v8.0.0793
patch 8.0.0793: using wrong terminal name for terminal window
commit https://github.com/vim/vim/commit/93723a4ef18f260b82d89759db2f1eeae730c4ec
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jul 28 15:55:32 2017 +0200
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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 28 Jul 2017 16:00:04 +0200 |
parents | 9cdf21a3d0fd |
children | 74889a871d48 |
files | src/os_unix.c src/version.c |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/os_unix.c +++ b/src/os_unix.c @@ -5276,7 +5276,8 @@ mch_job_start(char **argv, job_T *job, j 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();