diff options
Diffstat (limited to 'src/terminal.c')
-rw-r--r-- | src/terminal.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/terminal.c b/src/terminal.c index c7dc23f90..c0777b2ed 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -2432,10 +2432,7 @@ color2index(VTermColor *color, int fg, int *boldp) if (color->ansi_index != VTERM_ANSI_INDEX_NONE) { - /* First 16 colors and default: use the ANSI index, because these - * colors can be redefined, we use the RGB values. */ - if (t_colors > 256) - return color->ansi_index; + // The first 16 colors and default: use the ANSI index. switch (color->ansi_index) { case 0: return 0; |