From 3bb3a1ab7d649989017bddebea6b457ff8b273e6 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 3 Mar 2016 12:58:16 +0000 Subject: RGB colours shouldn't be mixed up with aixterm colours, return before that happens when working out if they are supported. --- usr.bin/tmux/tty.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c index 33c0012f409..5e795e70c30 100644 --- a/usr.bin/tmux/tty.c +++ b/usr.bin/tmux/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.199 2016/01/29 11:13:56 nicm Exp $ */ +/* $OpenBSD: tty.c,v 1.200 2016/03/03 12:58:15 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -1569,6 +1569,8 @@ tty_check_fg(struct tty *tty, struct grid_cell *gc) gc->flags |= GRID_FLAG_FG256; gc->fg = colour_find_rgb(rgb->r, rgb->g, rgb->b); } + else + return; } 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->bg = colour_find_rgb(rgb->r, rgb->g, rgb->b); } + else + return; } colours = tty_term_number(tty->term, TTYC_COLORS); -- cgit v1.2.3