=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tty.c,v retrieving revision 1.386 retrieving revision 1.387 diff -c -r1.386 -r1.387 *** src/usr.bin/tmux/tty.c 2020/11/09 10:54:28 1.386 --- src/usr.bin/tmux/tty.c 2020/12/03 07:12:12 1.387 *************** *** 1,4 **** ! /* $OpenBSD: tty.c,v 1.386 2020/11/09 10:54:28 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: tty.c,v 1.387 2020/12/03 07:12:12 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 2447,2453 **** /* Is this a 256-colour colour? */ if (gc->fg & COLOUR_FLAG_256) { /* And not a 256 colour mode? */ ! if (colours != 256) { gc->fg = colour_256to16(gc->fg); if (gc->fg & 8) { gc->fg &= 7; --- 2447,2453 ---- /* Is this a 256-colour colour? */ if (gc->fg & COLOUR_FLAG_256) { /* And not a 256 colour mode? */ ! if (colours < 256) { gc->fg = colour_256to16(gc->fg); if (gc->fg & 8) { gc->fg &= 7; *************** *** 2500,2506 **** * palette. Bold background doesn't exist portably, so just * discard the bold bit if set. */ ! if (colours != 256) { gc->bg = colour_256to16(gc->bg); if (gc->bg & 8) { gc->bg &= 7; --- 2500,2506 ---- * palette. Bold background doesn't exist portably, so just * discard the bold bit if set. */ ! if (colours < 256) { gc->bg = colour_256to16(gc->bg); if (gc->bg & 8) { gc->bg &= 7;