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

Diff for /src/usr.bin/tmux/Attic/window-choose.c between version 1.68 and 1.69

version 1.68, 2015/11/12 11:05:34 version 1.69, 2015/11/12 11:09:11
Line 754 
Line 754 
         struct grid_cell                 gc;          struct grid_cell                 gc;
         size_t                           last, xoff = 0;          size_t                           last, xoff = 0;
         char                             hdr[32], label[32];          char                             hdr[32], label[32];
         int                              utf8flag, key;          int                              key;
   
         if (data->callbackfn == NULL)          if (data->callbackfn == NULL)
                 fatalx("called before callback assigned");                  fatalx("called before callback assigned");
   
         last = screen_size_y(s) - 1;          last = screen_size_y(s) - 1;
         utf8flag = options_get_number(wp->window->options, "utf8");  
         memcpy(&gc, &grid_default_cell, sizeof gc);          memcpy(&gc, &grid_default_cell, sizeof gc);
         if (data->selected == data->top + py)          if (data->selected == data->top + py)
                 style_apply(&gc, oo, "mode-style");                  style_apply(&gc, oo, "mode-style");
Line 777 
Line 776 
                         xsnprintf(label, sizeof label, "(%c)", key);                          xsnprintf(label, sizeof label, "(%c)", key);
                 else                  else
                         xsnprintf(label, sizeof label, "(%d)", item->pos);                          xsnprintf(label, sizeof label, "(%d)", item->pos);
                 screen_write_nputs(ctx, screen_size_x(s) - 1, &gc, utf8flag,                  screen_write_nputs(ctx, screen_size_x(s) - 1, &gc,
                     "%*s %s %s", data->width + 2, label,                      "%*s %s %s", data->width + 2, label,
                     /*                      /*
                      * Add indication to tree if necessary about whether it's                       * Add indication to tree if necessary about whether it's

Legend:
Removed from v.1.68  
changed lines
  Added in v.1.69