[BACK]Return to tty.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/tty.c between version 1.386 and 1.387

version 1.386, 2020/11/09 10:54:28 version 1.387, 2020/12/03 07:12:12
Line 2447 
Line 2447 
         /* Is this a 256-colour colour? */          /* Is this a 256-colour colour? */
         if (gc->fg & COLOUR_FLAG_256) {          if (gc->fg & COLOUR_FLAG_256) {
                 /* And not a 256 colour mode? */                  /* And not a 256 colour mode? */
                 if (colours != 256) {                  if (colours < 256) {
                         gc->fg = colour_256to16(gc->fg);                          gc->fg = colour_256to16(gc->fg);
                         if (gc->fg & 8) {                          if (gc->fg & 8) {
                                 gc->fg &= 7;                                  gc->fg &= 7;
Line 2500 
Line 2500 
                  * palette. Bold background doesn't exist portably, so just                   * palette. Bold background doesn't exist portably, so just
                  * discard the bold bit if set.                   * discard the bold bit if set.
                  */                   */
                 if (colours != 256) {                  if (colours < 256) {
                         gc->bg = colour_256to16(gc->bg);                          gc->bg = colour_256to16(gc->bg);
                         if (gc->bg & 8) {                          if (gc->bg & 8) {
                                 gc->bg &= 7;                                  gc->bg &= 7;

Legend:
Removed from v.1.386  
changed lines
  Added in v.1.387