[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.56 and 1.57

version 1.56, 2014/10/22 23:18:53 version 1.57, 2014/11/30 08:03:29
Line 932 
Line 932 
 }  }
   
 struct window_choose_data *  struct window_choose_data *
 window_choose_add_item(struct window_pane *wp, struct client *c,  
     struct winlink *wl, const char *template, const char *action, u_int idx)  
 {  
         struct window_choose_data       *wcd;  
         char                            *expanded;  
   
         wcd = window_choose_data_create(TREE_OTHER, c, c->session);  
         wcd->idx = wl->idx;  
   
         wcd->ft_template = xstrdup(template);  
         format_add(wcd->ft, "line", "%u", idx);  
         format_session(wcd->ft, wcd->start_session);  
         format_winlink(wcd->ft, wcd->start_session, wl);  
         format_window_pane(wcd->ft, wl->window->active);  
   
         /*  
          * Interpolate action here, since the data we pass back is the expanded  
          * template itself.  
          */  
         xasprintf(&expanded, "%s", format_expand(wcd->ft, wcd->ft_template));  
         wcd->command = cmd_template_replace(action, expanded, 1);  
         free(expanded);  
   
         window_choose_add(wp, wcd);  
   
         return (wcd);  
   
 }  
   
 struct window_choose_data *  
 window_choose_add_window(struct window_pane *wp, struct client *c,  window_choose_add_window(struct window_pane *wp, struct client *c,
     struct session *s, struct winlink *wl, const char *template,      struct session *s, struct winlink *wl, const char *template,
     const char *action, u_int idx)      const char *action, u_int idx)

Legend:
Removed from v.1.56  
changed lines
  Added in v.1.57