mirror of
https://github.com/vim/vim.git
synced 2025-08-22 19:27:53 -04:00
patch 8.0.1358: undercurl is not used in the terminal
Problem: Undercurl is not used in the terminal. (Kovid Goyal) Solution: Only fall back to underline when undercurl highlighting is not defined. (closes #1306)
This commit is contained in:
parent
1a2ab991a6
commit
8b9e20afb0
17
src/screen.c
17
src/screen.c
@ -8058,8 +8058,11 @@ screen_start_highlight(int attr)
|
|||||||
out_str(T_ME);
|
out_str(T_ME);
|
||||||
if ((attr & HL_STANDOUT) && T_SO != NULL) /* standout */
|
if ((attr & HL_STANDOUT) && T_SO != NULL) /* standout */
|
||||||
out_str(T_SO);
|
out_str(T_SO);
|
||||||
if ((attr & (HL_UNDERLINE | HL_UNDERCURL)) && T_US != NULL)
|
if ((attr & HL_UNDERCURL) && T_UCS != NULL) /* undercurl */
|
||||||
/* underline or undercurl */
|
out_str(T_UCS);
|
||||||
|
if (((attr & HL_UNDERLINE) /* underline or undercurl */
|
||||||
|
|| ((attr & HL_UNDERCURL) && T_UCS == NULL))
|
||||||
|
&& T_US != NULL)
|
||||||
out_str(T_US);
|
out_str(T_US);
|
||||||
if ((attr & HL_ITALIC) && T_CZH != NULL) /* italic */
|
if ((attr & HL_ITALIC) && T_CZH != NULL) /* italic */
|
||||||
out_str(T_CZH);
|
out_str(T_CZH);
|
||||||
@ -8177,7 +8180,15 @@ screen_stop_highlight(void)
|
|||||||
else
|
else
|
||||||
out_str(T_SE);
|
out_str(T_SE);
|
||||||
}
|
}
|
||||||
if (screen_attr & (HL_UNDERLINE | HL_UNDERCURL))
|
if ((screen_attr & HL_UNDERCURL) && T_UCE != NULL)
|
||||||
|
{
|
||||||
|
if (STRCMP(T_UCE, T_ME) == 0)
|
||||||
|
do_ME = TRUE;
|
||||||
|
else
|
||||||
|
out_str(T_UCE);
|
||||||
|
}
|
||||||
|
if ((screen_attr & HL_UNDERLINE)
|
||||||
|
|| ((screen_attr & HL_UNDERCURL) && T_UCE == NULL))
|
||||||
{
|
{
|
||||||
if (STRCMP(T_UE, T_ME) == 0)
|
if (STRCMP(T_UE, T_ME) == 0)
|
||||||
do_ME = TRUE;
|
do_ME = TRUE;
|
||||||
|
@ -771,6 +771,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 */
|
||||||
|
/**/
|
||||||
|
1358,
|
||||||
/**/
|
/**/
|
||||||
1357,
|
1357,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user