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

Diff for /src/usr.bin/tmux/Attic/cmd-choose-buffer.c between version 1.1 and 1.2

version 1.1, 2010/06/21 21:44:09 version 1.2, 2010/12/30 23:16:18
Line 67 
Line 67 
         if ((wl = cmd_find_window(ctx, data->target, NULL)) == NULL)          if ((wl = cmd_find_window(ctx, data->target, NULL)) == NULL)
                 return (-1);                  return (-1);
   
         if (paste_get_top(&s->buffers) == NULL)          if (paste_get_top(&global_buffers) == NULL)
                 return (0);                  return (0);
   
         if (window_pane_set_mode(wl->window->active, &window_choose_mode) != 0)          if (window_pane_set_mode(wl->window->active, &window_choose_mode) != 0)
                 return (0);                  return (0);
   
         idx = 0;          idx = 0;
         while ((pb = paste_walk_stack(&s->buffers, &idx)) != NULL) {          while ((pb = paste_walk_stack(&global_buffers, &idx)) != NULL) {
                 tmp = paste_print(pb, 50);                  tmp = paste_print(pb, 50);
                 window_choose_add(wl->window->active, idx - 1,                  window_choose_add(wl->window->active, idx - 1,
                     "%u: %zu bytes: \"%s\"", idx - 1, pb->size, tmp);                      "%u: %zu bytes: \"%s\"", idx - 1, pb->size, tmp);

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