summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2024-03-07 00:01:10 +0000
committerThomas Adam <thomas@xteddy.org>2024-03-07 00:01:10 +0000
commitb54e1fc4f73b34f3f9c671289fef8cbbc7771d9c (patch)
tree6bfa17e650eb5ecc140f7a0358d96547d2244ab8
parentbdb6321229ac122c3c5f341b606f26cbee0d74df (diff)
parentbd29a48b56ae649d425fd6939d60f75d79d767da (diff)
Merge branch 'obsd-master'
-rw-r--r--cmd-split-window.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd-split-window.c b/cmd-split-window.c
index 637bad30..cae21af4 100644
--- a/cmd-split-window.c
+++ b/cmd-split-window.c
@@ -93,10 +93,10 @@ cmd_split_window_exec(struct cmd *self, struct cmdq_item *item)
size = -1;
if (args_has(args, 'l')) {
size = args_percentage_and_expand(args, 'l', 0, INT_MAX, curval,
- item, &cause);
+ item, &cause);
} else if (args_has(args, 'p')) {
- size = args_strtonum_and_expand(args, 'l', 0, 100, item,
- &cause);
+ size = args_strtonum_and_expand(args, 'p', 0, 100, item,
+ &cause);
if (cause == NULL)
size = curval * size / 100;
}