Mercurial > vim
comparison src/term.c @ 20850:bf7453768034 v8.2.0977
patch 8.2.0977: t_8u is made empty for the wrong terminals
Commit: https://github.com/vim/vim/commit/8dff4cbf6d917e20322821e8e866ffc1c1175258
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 14 14:34:16 2020 +0200
patch 8.2.0977: t_8u is made empty for the wrong terminals
Problem: t_8u is made empty for the wrong terminals. (Dominique Pelle)
Solution: Invert the check for TPR_YES. (closes https://github.com/vim/vim/issues/6254)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 14 Jun 2020 14:45:03 +0200 |
parents | 020aec2e8de9 |
children | a9e3208048b2 |
comparison
equal
deleted
inserted
replaced
20849:a13abf01e8cd | 20850:bf7453768034 |
---|---|
4635 | 4635 |
4636 // Detect terminals that set $TERM to something like | 4636 // Detect terminals that set $TERM to something like |
4637 // "xterm-256color" but are not fully xterm compatible. | 4637 // "xterm-256color" but are not fully xterm compatible. |
4638 // | 4638 // |
4639 // Gnome terminal sends 1;3801;0, 1;4402;0 or 1;2501;0. | 4639 // Gnome terminal sends 1;3801;0, 1;4402;0 or 1;2501;0. |
4640 // Newer Gnome-terminal sends 65;6001;1. | |
4640 // xfce4-terminal sends 1;2802;0. | 4641 // xfce4-terminal sends 1;2802;0. |
4641 // screen sends 83;40500;0 | 4642 // screen sends 83;40500;0 |
4642 // Assuming any version number over 2500 is not an | 4643 // Assuming any version number over 2500 is not an |
4643 // xterm (without the limit for rxvt and screen). | 4644 // xterm (without the limit for rxvt and screen). |
4644 if (arg[1] >= 2500) | 4645 if (arg[1] >= 2500) |
4686 * Take action on the detected properties. | 4687 * Take action on the detected properties. |
4687 */ | 4688 */ |
4688 | 4689 |
4689 // Unless the underline RGB color is expected to work, disable "t_8u". | 4690 // Unless the underline RGB color is expected to work, disable "t_8u". |
4690 // It does not work for the real Xterm, it resets the background color. | 4691 // It does not work for the real Xterm, it resets the background color. |
4691 if (term_props[TPR_UNDERLINE_RGB].tpr_status == TPR_YES && *T_8U != NUL) | 4692 if (term_props[TPR_UNDERLINE_RGB].tpr_status != TPR_YES && *T_8U != NUL) |
4692 T_8U = empty_option; | 4693 T_8U = empty_option; |
4693 | 4694 |
4694 // Only set 'ttymouse' automatically if it was not set | 4695 // Only set 'ttymouse' automatically if it was not set |
4695 // by the user already. | 4696 // by the user already. |
4696 if (!option_was_set((char_u *)"ttym") | 4697 if (!option_was_set((char_u *)"ttym") |