summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/os_unix.c9
-rw-r--r--src/version.c2
2 files changed, 10 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index c0a4fdbe3..397342c68 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -5493,7 +5493,14 @@ mch_job_start(char **argv, job_T *job, jobopt_T *options, int is_terminal)
// Use 'term' or $TERM if it starts with "xterm", otherwise fall
// back to "xterm".
if (term == NULL || *term == NUL || STRNCMP(term, "xterm", 5) != 0)
- term = "xterm";
+ {
+ if (t_colors > 16)
+ term = "xterm-color";
+ if (t_colors >= 256)
+ term = "xterm-256color";
+ else
+ term = "xterm";
+ }
set_child_environment(
(long)options->jo_term_rows,
(long)options->jo_term_cols,
diff --git a/src/version.c b/src/version.c
index 4c07cd2e7..f420990b9 100644
--- a/src/version.c
+++ b/src/version.c
@@ -739,6 +739,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 518,
+/**/
517,
/**/
516,