[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.64 and 1.65

version 1.64, 2009/11/04 13:34:26 version 1.65, 2009/11/04 15:59:27
Line 1126 
Line 1126 
         /* If the character is space, don't care about foreground. */          /* If the character is space, don't care about foreground. */
         if (gc->data == ' ' && !(gc->flags & GRID_FLAG_UTF8)) {          if (gc->data == ' ' && !(gc->flags & GRID_FLAG_UTF8)) {
                 memcpy(&gc2, gc, sizeof gc2);                  memcpy(&gc2, gc, sizeof gc2);
   
                 if (gc->attr & GRID_ATTR_REVERSE)                  if (gc->attr & GRID_ATTR_REVERSE)
                         gc2.bg = tc->bg;                          gc2.bg = tc->bg;
                 else                  else
                         gc2.fg = tc->fg;                          gc2.fg = tc->fg;
                 gc2.attr = tc->attr & ~GRID_ATTR_REVERSE;  
                 gc2.attr |= gc->attr & GRID_ATTR_REVERSE;  
   
                 gc = &gc2;                  gc = &gc2;
         }          }
   

Legend:
Removed from v.1.64  
changed lines
  Added in v.1.65