Skip to content

Commit 33645e9

Browse files
committed
fix: don't remove VTERM_ANSI_INDEX_NONE
1 parent ee565e8 commit 33645e9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/term.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -1519,9 +1519,7 @@ int set_termname(char_u *term)
15191519
struct builtin_term *termp;
15201520
#ifdef HAVE_TGETENT
15211521
int builtin_first = p_tbi;
1522-
int
1523-
try
1524-
;
1522+
int try;
15251523
int termcap_cleared = FALSE;
15261524
#endif
15271525
int width = 0, height = 0;
@@ -3487,9 +3485,9 @@ void show_termcodes(void)
34873485
{
34883486
len = show_one_termcode(termcodes[i].name,
34893487
termcodes[i].code, FALSE);
3490-
if (len <= INC3 - GAP ? run == 1
3491-
: len <= INC2 - GAP ? run == 2
3492-
: run == 3)
3488+
if (len <= INC3 - GAP ? run == 1
3489+
: len <= INC2 - GAP ? run == 2
3490+
: run == 3)
34933491
items[item_count++] = i;
34943492
}
34953493

@@ -3901,6 +3899,8 @@ static int grey_ramp[] = {
39013899
0x08, 0x12, 0x1C, 0x26, 0x30, 0x3A, 0x44, 0x4E, 0x58, 0x62, 0x6C, 0x76,
39023900
0x80, 0x8A, 0x94, 0x9E, 0xA8, 0xB2, 0xBC, 0xC6, 0xD0, 0xDA, 0xE4, 0xEE};
39033901

3902+
#define VTERM_ANSI_INDEX_NONE 0
3903+
39043904
static char_u ansi_table[16][4] = {
39053905
// R G B idx
39063906
{0, 0, 0, 1}, // black

0 commit comments

Comments
 (0)