mirror of
https://github.com/tmux/tmux.git
synced 2025-04-04 07:08:50 +00:00
RGB colours shouldn't be mixed up with aixterm colours, return before
that happens when working out if they are supported.
This commit is contained in:
parent
b8a102d26f
commit
bcb41a09b3
4
tty.c
4
tty.c
@ -1569,6 +1569,8 @@ tty_check_fg(struct tty *tty, struct grid_cell *gc)
|
|||||||
gc->flags |= GRID_FLAG_FG256;
|
gc->flags |= GRID_FLAG_FG256;
|
||||||
gc->fg = colour_find_rgb(rgb->r, rgb->g, rgb->b);
|
gc->fg = colour_find_rgb(rgb->r, rgb->g, rgb->b);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
colours = tty_term_number(tty->term, TTYC_COLORS);
|
colours = tty_term_number(tty->term, TTYC_COLORS);
|
||||||
|
|
||||||
@ -1612,6 +1614,8 @@ tty_check_bg(struct tty *tty, struct grid_cell *gc)
|
|||||||
gc->flags |= GRID_FLAG_BG256;
|
gc->flags |= GRID_FLAG_BG256;
|
||||||
gc->bg = colour_find_rgb(rgb->r, rgb->g, rgb->b);
|
gc->bg = colour_find_rgb(rgb->r, rgb->g, rgb->b);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
colours = tty_term_number(tty->term, TTYC_COLORS);
|
colours = tty_term_number(tty->term, TTYC_COLORS);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user