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

Diff for /src/usr.bin/tmux/status.c between version 1.4 and 1.5

version 1.4, 2009/06/04 21:43:24 version 1.5, 2009/06/26 15:13:39
Line 91 
Line 91 
         rlen2 = screen_write_strlen(utf8flag, "%s", right);          rlen2 = screen_write_strlen(utf8flag, "%s", right);
         if (rlen2 < rlen)          if (rlen2 < rlen)
                 rlen = rlen2;                  rlen = rlen2;
         right[rlen] = '\0';  
   
         /*          /*
          * Figure out how much space we have for the window list. If there isn't           * Figure out how much space we have for the window list. If there isn't
Line 167 
Line 166 
         screen_write_start(&ctx, NULL, &c->status);          screen_write_start(&ctx, NULL, &c->status);
         if (llen != 0) {          if (llen != 0) {
                 screen_write_cursormove(&ctx, 0, yy);                  screen_write_cursormove(&ctx, 0, yy);
                 screen_write_nputs(                  screen_write_nputs(&ctx, llen, &stdgc, utf8flag, "%s", left);
                     &ctx, llen + 1, &stdgc, utf8flag, "%s ", left);                  screen_write_putc(&ctx, &stdgc, ' ');
                 if (larrow)                  if (larrow)
                         screen_write_putc(&ctx, &stdgc, ' ');                          screen_write_putc(&ctx, &stdgc, ' ');
         } else {          } else {
Line 225 
Line 224 
         /* Draw the last item. */          /* Draw the last item. */
         if (rlen != 0) {          if (rlen != 0) {
                 screen_write_cursormove(&ctx, c->tty.sx - rlen - 1, yy);                  screen_write_cursormove(&ctx, c->tty.sx - rlen - 1, yy);
                 screen_write_nputs(                  screen_write_putc(&ctx, &stdgc, ' ');
                     &ctx, rlen + 1, &stdgc, utf8flag, " %s", right);                  screen_write_nputs(&ctx, rlen, &stdgc, utf8flag, "%s", right);
         }          }
   
         /* Draw the arrows. */          /* Draw the arrows. */

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5