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

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

version 1.14, 2012/07/11 07:10:15 version 1.15, 2013/03/24 09:54:10
Line 25 
Line 25 
  */   */
   
 void             cmd_select_pane_key_binding(struct cmd *, int);  void             cmd_select_pane_key_binding(struct cmd *, int);
 enum cmd_retval  cmd_select_pane_exec(struct cmd *, struct cmd_ctx *);  enum cmd_retval  cmd_select_pane_exec(struct cmd *, struct cmd_q *);
   
 const struct cmd_entry cmd_select_pane_entry = {  const struct cmd_entry cmd_select_pane_entry = {
         "select-pane", "selectp",          "select-pane", "selectp",
Line 64 
Line 64 
 }  }
   
 enum cmd_retval  enum cmd_retval
 cmd_select_pane_exec(struct cmd *self, struct cmd_ctx *ctx)  cmd_select_pane_exec(struct cmd *self, struct cmd_q *cmdq)
 {  {
         struct args             *args = self->args;          struct args             *args = self->args;
         struct winlink          *wl;          struct winlink          *wl;
         struct window_pane      *wp;          struct window_pane      *wp;
   
         if (self->entry == &cmd_last_pane_entry || args_has(args, 'l')) {          if (self->entry == &cmd_last_pane_entry || args_has(args, 'l')) {
                 wl = cmd_find_window(ctx, args_get(args, 't'), NULL);                  wl = cmd_find_window(cmdq, args_get(args, 't'), NULL);
                 if (wl == NULL)                  if (wl == NULL)
                         return (CMD_RETURN_ERROR);                          return (CMD_RETURN_ERROR);
   
                 if (wl->window->last == NULL) {                  if (wl->window->last == NULL) {
                         ctx->error(ctx, "no last pane");                          cmdq_error(cmdq, "no last pane");
                         return (CMD_RETURN_ERROR);                          return (CMD_RETURN_ERROR);
                 }                  }
   
Line 87 
Line 87 
                 return (CMD_RETURN_NORMAL);                  return (CMD_RETURN_NORMAL);
         }          }
   
         if ((wl = cmd_find_pane(ctx, args_get(args, 't'), NULL, &wp)) == NULL)          if ((wl = cmd_find_pane(cmdq, args_get(args, 't'), NULL, &wp)) == NULL)
                 return (CMD_RETURN_ERROR);                  return (CMD_RETURN_ERROR);
   
         if (!window_pane_visible(wp)) {          if (!window_pane_visible(wp)) {
                 ctx->error(ctx, "pane not visible");                  cmdq_error(cmdq, "pane not visible");
                 return (CMD_RETURN_ERROR);                  return (CMD_RETURN_ERROR);
         }          }
   
Line 104 
Line 104 
         else if (args_has(self->args, 'D'))          else if (args_has(self->args, 'D'))
                 wp = window_pane_find_down(wp);                  wp = window_pane_find_down(wp);
         if (wp == NULL) {          if (wp == NULL) {
                 ctx->error(ctx, "pane not found");                  cmdq_error(cmdq, "pane not found");
                 return (CMD_RETURN_ERROR);                  return (CMD_RETURN_ERROR);
         }          }
   

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