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

Diff for /src/usr.bin/tmux/cmd-list-panes.c between version 1.14 and 1.15

version 1.14, 2012/07/10 11:53:01 version 1.15, 2012/07/11 07:10:15
Line 27 
Line 27 
  * List panes on given window.   * List panes on given window.
  */   */
   
 int     cmd_list_panes_exec(struct cmd *, struct cmd_ctx *);  enum cmd_retval  cmd_list_panes_exec(struct cmd *, struct cmd_ctx *);
   
 void    cmd_list_panes_server(struct cmd *, struct cmd_ctx *);  void    cmd_list_panes_server(struct cmd *, struct cmd_ctx *);
 void    cmd_list_panes_session(  void    cmd_list_panes_session(
Line 45 
Line 45 
         cmd_list_panes_exec          cmd_list_panes_exec
 };  };
   
 int  enum cmd_retval
 cmd_list_panes_exec(struct cmd *self, struct cmd_ctx *ctx)  cmd_list_panes_exec(struct cmd *self, struct cmd_ctx *ctx)
 {  {
         struct args     *args = self->args;          struct args     *args = self->args;
Line 57 
Line 57 
         else if (args_has(args, 's')) {          else if (args_has(args, 's')) {
                 s = cmd_find_session(ctx, args_get(args, 't'), 0);                  s = cmd_find_session(ctx, args_get(args, 't'), 0);
                 if (s == NULL)                  if (s == NULL)
                         return (-1);                          return (CMD_RETURN_ERROR);
                 cmd_list_panes_session(self, s, ctx, 1);                  cmd_list_panes_session(self, s, ctx, 1);
         } else {          } else {
                 wl = cmd_find_window(ctx, args_get(args, 't'), &s);                  wl = cmd_find_window(ctx, args_get(args, 't'), &s);
                 if (wl == NULL)                  if (wl == NULL)
                         return (-1);                          return (CMD_RETURN_ERROR);
                 cmd_list_panes_window(self, s, wl, ctx, 0);                  cmd_list_panes_window(self, s, wl, ctx, 0);
         }          }
   
         return (0);          return (CMD_RETURN_NORMAL);
 }  }
   
 void  void

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15