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

Diff for /src/usr.bin/tmux/window-tree.c between version 1.32 and 1.33

version 1.32, 2018/12/18 13:20:44 version 1.33, 2019/03/07 20:24:21
Line 24 
Line 24 
   
 #include "tmux.h"  #include "tmux.h"
   
 static struct screen    *window_tree_init(struct window_pane *,  static struct screen    *window_tree_init(struct window_mode_entry *,
                              struct cmd_find_state *, struct args *);                               struct cmd_find_state *, struct args *);
 static void              window_tree_free(struct window_pane *);  static void              window_tree_free(struct window_mode_entry *);
 static void              window_tree_resize(struct window_pane *, u_int, u_int);  static void              window_tree_resize(struct window_mode_entry *, u_int,
 static void              window_tree_key(struct window_pane *,                               u_int);
   static void              window_tree_key(struct window_mode_entry *,
                              struct client *, struct session *,                               struct client *, struct session *,
                              struct winlink *, key_code, struct mouse_event *);                               struct winlink *, key_code, struct mouse_event *);
   
Line 810 
Line 811 
 }  }
   
 static struct screen *  static struct screen *
 window_tree_init(struct window_pane *wp, struct cmd_find_state *fs,  window_tree_init(struct window_mode_entry *wme, struct cmd_find_state *fs,
     struct args *args)      struct args *args)
 {  {
           struct window_pane              *wp = wme->wp;
         struct window_tree_modedata     *data;          struct window_tree_modedata     *data;
         struct screen                   *s;          struct screen                   *s;
   
         wp->modedata = data = xcalloc(1, sizeof *data);          wme->data = data = xcalloc(1, sizeof *data);
   
         if (args_has(args, 's'))          if (args_has(args, 's'))
                 data->type = WINDOW_TREE_SESSION;                  data->type = WINDOW_TREE_SESSION;
Line 871 
Line 873 
 }  }
   
 static void  static void
 window_tree_free(struct window_pane *wp)  window_tree_free(struct window_mode_entry *wme)
 {  {
         struct window_tree_modedata *data = wp->modedata;          struct window_tree_modedata *data = wme->data;
   
         if (data == NULL)          if (data == NULL)
                 return;                  return;
Line 884 
Line 886 
 }  }
   
 static void  static void
 window_tree_resize(struct window_pane *wp, u_int sx, u_int sy)  window_tree_resize(struct window_mode_entry *wme, u_int sx, u_int sy)
 {  {
         struct window_tree_modedata     *data = wp->modedata;          struct window_tree_modedata     *data = wme->data;
   
         mode_tree_resize(data->data, sx, sy);          mode_tree_resize(data->data, sx, sy);
 }  }
Line 1119 
Line 1121 
 }  }
   
 static void  static void
 window_tree_key(struct window_pane *wp, struct client *c,  window_tree_key(struct window_mode_entry *wme, struct client *c,
     __unused struct session *s, __unused struct winlink *wl, key_code key,      __unused struct session *s, __unused struct winlink *wl, key_code key,
     struct mouse_event *m)      struct mouse_event *m)
 {  {
         struct window_tree_modedata     *data = wp->modedata;          struct window_pane              *wp = wme->wp;
           struct window_tree_modedata     *data = wme->data;
         struct window_tree_itemdata     *item, *new_item;          struct window_tree_itemdata     *item, *new_item;
         char                            *name, *prompt = NULL;          char                            *name, *prompt = NULL;
         struct cmd_find_state            fs;          struct cmd_find_state            fs;

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33