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

Diff for /src/usr.bin/tmux/cmd-resize-pane.c between version 1.12 and 1.13

version 1.12, 2013/01/17 00:11:22 version 1.13, 2013/03/22 10:37:39
Line 31 
Line 31 
   
 const struct cmd_entry cmd_resize_pane_entry = {  const struct cmd_entry cmd_resize_pane_entry = {
         "resize-pane", "resizep",          "resize-pane", "resizep",
         "DLRt:U", 0, 1,          "DLRt:Ux:y:", 0, 1,
         "[-DLRU] " CMD_TARGET_PANE_USAGE " [adjustment]",          "[-DLRU] [-x width] [-y height] " CMD_TARGET_PANE_USAGE " [adjustment]",
         0,          0,
         cmd_resize_pane_key_binding,          cmd_resize_pane_key_binding,
         NULL,          NULL,
Line 87 
Line 87 
         struct args             *args = self->args;          struct args             *args = self->args;
         struct winlink          *wl;          struct winlink          *wl;
         const char              *errstr;          const char              *errstr;
           char                    *cause;
         struct window_pane      *wp;          struct window_pane      *wp;
         u_int                    adjust;          u_int                    adjust;
           int                      x, y;
   
         if ((wl = cmd_find_pane(ctx, args_get(args, 't'), NULL, &wp)) == NULL)          if ((wl = cmd_find_pane(ctx, args_get(args, 't'), NULL, &wp)) == NULL)
                 return (CMD_RETURN_ERROR);                  return (CMD_RETURN_ERROR);
Line 101 
Line 103 
                         ctx->error(ctx, "adjustment %s", errstr);                          ctx->error(ctx, "adjustment %s", errstr);
                         return (CMD_RETURN_ERROR);                          return (CMD_RETURN_ERROR);
                 }                  }
           }
   
           if (args_has(self->args, 'x')) {
                   x = args_strtonum(self->args, 'x', PANE_MINIMUM, INT_MAX,
                       &cause);
                   if (cause != NULL) {
                           ctx->error(ctx, "width %s", cause);
                           free(cause);
                           return (CMD_RETURN_ERROR);
                   }
                   layout_resize_pane_to(wp, LAYOUT_LEFTRIGHT, x);
           }
           if (args_has(self->args, 'y')) {
                   y = args_strtonum(self->args, 'y', PANE_MINIMUM, INT_MAX,
                       &cause);
                   if (cause != NULL) {
                           ctx->error(ctx, "height %s", cause);
                           free(cause);
                           return (CMD_RETURN_ERROR);
                   }
                   layout_resize_pane_to(wp, LAYOUT_TOPBOTTOM, y);
         }          }
   
         if (args_has(self->args, 'L'))          if (args_has(self->args, 'L'))

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13