forked from aniani/vim
patch 8.2.4775: SpellBad highlighting does not work in Konsole
Problem: SpellBad highlighting does not work in Konsole.
Solution: Do not keep t_8u defined for Konsole. Redraw when t_8u is reset.
(closes #10177)
This commit is contained in:
13
src/term.c
13
src/term.c
@@ -4775,9 +4775,10 @@ handle_version_response(int first, int *arg, int argc, char_u *tp)
|
|||||||
// vandyke SecureCRT sends 1;136;0
|
// vandyke SecureCRT sends 1;136;0
|
||||||
}
|
}
|
||||||
|
|
||||||
// Konsole sends 0;115;0
|
// Konsole sends 0;115;0 - but t_u8 does not actually work, therefore
|
||||||
else if (version == 115 && arg[0] == 0 && arg[2] == 0)
|
// commented out.
|
||||||
term_props[TPR_UNDERLINE_RGB].tpr_status = TPR_YES;
|
// else if (version == 115 && arg[0] == 0 && arg[2] == 0)
|
||||||
|
// term_props[TPR_UNDERLINE_RGB].tpr_status = TPR_YES;
|
||||||
|
|
||||||
// GNU screen sends 83;30600;0, 83;40500;0, etc.
|
// GNU screen sends 83;30600;0, 83;40500;0, etc.
|
||||||
// 30600/40500 is a version number of GNU screen. DA2 support is added
|
// 30600/40500 is a version number of GNU screen. DA2 support is added
|
||||||
@@ -4806,9 +4807,15 @@ handle_version_response(int first, int *arg, int argc, char_u *tp)
|
|||||||
|
|
||||||
// Unless the underline RGB color is expected to work, disable "t_8u".
|
// 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.
|
// It does not work for the real Xterm, it resets the background color.
|
||||||
|
// This may cause some flicker. Alternative would be to set "t_8u"
|
||||||
|
// here if the terminal is expected to support it, but that might
|
||||||
|
// conflict with what was set in the .vimrc.
|
||||||
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)
|
||||||
|
{
|
||||||
set_string_option_direct((char_u *)"t_8u", -1, (char_u *)"",
|
set_string_option_direct((char_u *)"t_8u", -1, (char_u *)"",
|
||||||
OPT_FREE, 0);
|
OPT_FREE, 0);
|
||||||
|
redraw_later(CLEAR);
|
||||||
|
}
|
||||||
|
|
||||||
// Only set 'ttymouse' automatically if it was not set
|
// Only set 'ttymouse' automatically if it was not set
|
||||||
// by the user already.
|
// by the user already.
|
||||||
|
|||||||
@@ -746,6 +746,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
4775,
|
||||||
/**/
|
/**/
|
||||||
4774,
|
4774,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user