mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 9.0.0636: underline color may not work in some terminals
Problem: Underline color does not work in terminals that don't send a termresponse. Solution: Do output t_8u if it was set explicitly. (closes #11253)
This commit is contained in:
parent
3292a22940
commit
b393275ae9
@ -153,7 +153,7 @@ static termrequest_T *all_termrequests[] = {
|
|||||||
|
|
||||||
// The t_8u code may default to a value but get reset when the term response is
|
// The t_8u code may default to a value but get reset when the term response is
|
||||||
// received. To avoid redrawing too often, only redraw when t_8u is not reset
|
// received. To avoid redrawing too often, only redraw when t_8u is not reset
|
||||||
// and it was supposed to be written.
|
// and it was supposed to be written. Unless t_8u was set explicitly.
|
||||||
// FALSE -> don't output t_8u yet
|
// FALSE -> don't output t_8u yet
|
||||||
// MAYBE -> tried outputing t_8u while FALSE
|
// MAYBE -> tried outputing t_8u while FALSE
|
||||||
// OK -> can write t_8u
|
// OK -> can write t_8u
|
||||||
@ -3011,7 +3011,10 @@ term_bg_rgb_color(guicolor_T rgb)
|
|||||||
term_ul_rgb_color(guicolor_T rgb)
|
term_ul_rgb_color(guicolor_T rgb)
|
||||||
{
|
{
|
||||||
# ifdef FEAT_TERMRESPONSE
|
# ifdef FEAT_TERMRESPONSE
|
||||||
if (write_t_8u_state != OK)
|
// If the user explicitly sets t_8u then use it. Otherwise wait for
|
||||||
|
// termresponse to be received, which is when t_8u would be set and a
|
||||||
|
// redraw is needed if it was used.
|
||||||
|
if (!option_was_set((char_u *)"t_8u") && write_t_8u_state != OK)
|
||||||
write_t_8u_state = MAYBE;
|
write_t_8u_state = MAYBE;
|
||||||
else
|
else
|
||||||
# endif
|
# endif
|
||||||
|
@ -699,6 +699,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 */
|
||||||
|
/**/
|
||||||
|
636,
|
||||||
/**/
|
/**/
|
||||||
635,
|
635,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user