summaryrefslogtreecommitdiff
path: root/src/term.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-14 14:34:16 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-14 14:34:16 +0200
commit8dff4cbf6d917e20322821e8e866ffc1c1175258 (patch)
tree00aa9e36b5bb28a9f41aafc23512a84962178fa6 /src/term.c
parentdf7df59d85e7e56a796912dc865488a75d3f0e53 (diff)
downloadvim-git-8dff4cbf6d917e20322821e8e866ffc1c1175258.tar.gz
patch 8.2.0977: t_8u is made empty for the wrong terminalsv8.2.0977
Problem: t_8u is made empty for the wrong terminals. (Dominique Pelle) Solution: Invert the check for TPR_YES. (closes #6254)
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/term.c b/src/term.c
index eb34c8b7a..b806a8907 100644
--- a/src/term.c
+++ b/src/term.c
@@ -4637,6 +4637,7 @@ handle_version_response(int first, int *arg, int argc, char_u *tp)
// "xterm-256color" but are not fully xterm compatible.
//
// Gnome terminal sends 1;3801;0, 1;4402;0 or 1;2501;0.
+ // Newer Gnome-terminal sends 65;6001;1.
// xfce4-terminal sends 1;2802;0.
// screen sends 83;40500;0
// Assuming any version number over 2500 is not an
@@ -4688,7 +4689,7 @@ handle_version_response(int first, int *arg, int argc, char_u *tp)
// Unless the underline RGB color is expected to work, disable "t_8u".
// It does not work for the real Xterm, it resets the background color.
- if (term_props[TPR_UNDERLINE_RGB].tpr_status == TPR_YES && *T_8U != NUL)
+ if (term_props[TPR_UNDERLINE_RGB].tpr_status != TPR_YES && *T_8U != NUL)
T_8U = empty_option;
// Only set 'ttymouse' automatically if it was not set