diff options
author | Thomas Adam <thomas@xteddy.org> | 2021-08-21 12:01:41 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2021-08-21 12:01:41 +0100 |
commit | 62036121fa3f69a93031f90956e659e090d79a1f (patch) | |
tree | ff1f52ad0c756d30e0dcc53adf8efd775da80c5a /cmd-resize-pane.c | |
parent | b0da0cee4d54aa64db0f49eee509a76fd89d6f68 (diff) | |
parent | 110ba767e591946d6784acef87737850f2ad3ae9 (diff) | |
download | rtmux-62036121fa3f69a93031f90956e659e090d79a1f.tar.gz rtmux-62036121fa3f69a93031f90956e659e090d79a1f.tar.bz2 rtmux-62036121fa3f69a93031f90956e659e090d79a1f.zip |
Merge branch 'obsd-master' into master
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); |