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

Diff for /src/usr.bin/tmux/style.c between version 1.2 and 1.3

version 1.2, 2014/02/22 01:38:47 version 1.3, 2014/05/08 05:53:29
Line 117 
Line 117 
   
         *s = '\0';          *s = '\0';
   
         if (gc->fg != 8) {          if (gc->fg != 8 || gc->flags & GRID_FLAG_FG256) {
                 if (gc->flags & GRID_FLAG_FG256)                  if (gc->flags & GRID_FLAG_FG256)
                         c = gc->fg | 0x100;                          c = gc->fg | 0x100;
                 else                  else
Line 126 
Line 126 
                 comma = 1;                  comma = 1;
         }          }
   
         if (gc->bg != 8) {          if (gc->bg != 8 || gc->flags & GRID_FLAG_BG256) {
                 if (gc->flags & GRID_FLAG_BG256)                  if (gc->flags & GRID_FLAG_BG256)
                         c = gc->bg | 0x100;                          c = gc->bg | 0x100;
                 else                  else
Line 221 
Line 221 
         struct grid_cell        *gcp;          struct grid_cell        *gcp;
   
         gcp = options_get_style(oo, name);          gcp = options_get_style(oo, name);
         if (gcp->fg != 8) {          if (gcp->fg != 8 || gcp->flags & GRID_FLAG_FG256) {
                 if (gcp->flags & GRID_FLAG_FG256)                  if (gcp->flags & GRID_FLAG_FG256)
                         colour_set_fg(gc, gcp->fg | 0x100);                          colour_set_fg(gc, gcp->fg | 0x100);
                 else                  else
                         colour_set_fg(gc, gcp->fg);                          colour_set_fg(gc, gcp->fg);
         }          }
         if (gcp->bg != 8) {          if (gcp->bg != 8 || gcp->flags & GRID_FLAG_BG256) {
                 if (gcp->flags & GRID_FLAG_BG256)                  if (gcp->flags & GRID_FLAG_BG256)
                         colour_set_bg(gc, gcp->bg | 0x100);                          colour_set_bg(gc, gcp->bg | 0x100);
                 else                  else

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3