vim-patch: 7.4.1036

Problem:    Only terminals with up to 256 colors work properly.
Solution:   Use the 256 color behavior for all terminals with 256 or more
            colors. (Robert de Bath)

fa03fd6c4a
This commit is contained in:
Michael Ennen
2016-04-26 16:40:45 -07:00
parent c9b1ad3a57
commit 087623aa3c
2 changed files with 9 additions and 13 deletions

View File

@@ -6370,18 +6370,14 @@ do_highlight (
} else } else
HL_TABLE()[idx].sg_cterm &= ~HL_BOLD; HL_TABLE()[idx].sg_cterm &= ~HL_BOLD;
} }
color &= 7; /* truncate to 8 colors */ color &= 7; // truncate to 8 colors
} else if (t_colors == 16 || t_colors == 88 || t_colors == 256) { } else if (t_colors == 16 || t_colors == 88 || t_colors >= 256) {
switch (t_colors) { if (t_colors == 88) {
case 16: color = color_numbers_88[i];
color = color_numbers_8[i]; } else if (t_colors >= 256) {
break; color = color_numbers_256[i];
case 88: } else {
color = color_numbers_88[i]; color = color_numbers_8[i];
break;
case 256:
color = color_numbers_256[i];
break;
} }
} }
} }

View File

@@ -647,7 +647,7 @@ static int included_patches[] = {
// 1039, // 1039,
// 1038 NA // 1038 NA
1037, 1037,
// 1036, 1036,
1035, 1035,
// 1034, // 1034,
// 1033 NA // 1033 NA