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.
diff --git a/src/os_unix.c b/src/os_unix.c
index f2ab7b1..8f51e68 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -5276,7 +5276,8 @@
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();