aboutsummaryrefslogtreecommitdiff
path: root/cmd-resize-window.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2021-08-21 12:01:41 +0100
committerThomas Adam <thomas@xteddy.org>2021-08-21 12:01:41 +0100
commit62036121fa3f69a93031f90956e659e090d79a1f (patch)
treeff1f52ad0c756d30e0dcc53adf8efd775da80c5a /cmd-resize-window.c
parentb0da0cee4d54aa64db0f49eee509a76fd89d6f68 (diff)
parent110ba767e591946d6784acef87737850f2ad3ae9 (diff)
downloadrtmux-62036121fa3f69a93031f90956e659e090d79a1f.tar.gz
rtmux-62036121fa3f69a93031f90956e659e090d79a1f.tar.bz2
rtmux-62036121fa3f69a93031f90956e659e090d79a1f.zip
Merge branch 'obsd-master' into master
Diffstat (limited to 'cmd-resize-window.c')
-rw-r--r--cmd-resize-window.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd-resize-window.c b/cmd-resize-window.c
index 3e33f771..24d73c87 100644
--- a/cmd-resize-window.c
+++ b/cmd-resize-window.c
@@ -33,7 +33,7 @@ const struct cmd_entry cmd_resize_window_entry = {
.name = "resize-window",
.alias = "resizew",
- .args = { "aADLRt:Ux:y:", 0, 1 },
+ .args = { "aADLRt:Ux:y:", 0, 1, NULL },
.usage = "[-aADLRU] [-x width] [-y height] " CMD_TARGET_WINDOW_USAGE " "
"[adjustment]",
@@ -59,8 +59,7 @@ cmd_resize_window_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);