diff options
Diffstat (limited to 'cmd-resize-pane.c')
-rw-r--r-- | cmd-resize-pane.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd-resize-pane.c b/cmd-resize-pane.c index 98d500db..81744f72 100644 --- a/cmd-resize-pane.c +++ b/cmd-resize-pane.c @@ -36,7 +36,7 @@ const struct cmd_entry cmd_resize_pane_entry = { .name = "resize-pane", .alias = "resizep", - .args = { "DLMRTt:Ux:y:Z", 0, 1 }, + .args = { "DLMRTt:Ux:y:Z", 0, 1, NULL }, .usage = "[-DLMRTUZ] [-x width] [-y height] " CMD_TARGET_PANE_USAGE " " "[adjustment]", @@ -98,8 +98,7 @@ cmd_resize_pane_exec(struct cmd *self, struct cmdq_item *item) if (args_count(args) == 0) adjust = 1; else { - adjust = strtonum(args_string(args, 0), 1, INT_MAX, - &errstr); + adjust = strtonum(args_string(args, 0), 1, INT_MAX, &errstr); if (errstr != NULL) { cmdq_error(item, "adjustment %s", errstr); return (CMD_RETURN_ERROR); |