From 2d1afa0e62a24aa7c53ce4fb6f1e35e29d01a904 Mon Sep 17 00:00:00 2001 From: Bryan Childs Date: Thu, 15 Feb 2024 09:43:50 +1000 Subject: [PATCH] Update cmd-split-window.c This is a single character change to fix a regression in tmux 3.4 which stops the '-p' argument to split-window from working. Without this change, the command returns the error "Size missing" to the end user if they attempt to use the '-p' argument. --- cmd-split-window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd-split-window.c b/cmd-split-window.c index 637bad3073..f5506ad81f 100644 --- a/cmd-split-window.c +++ b/cmd-split-window.c @@ -95,7 +95,7 @@ cmd_split_window_exec(struct cmd *self, struct cmdq_item *item) size = args_percentage_and_expand(args, 'l', 0, INT_MAX, curval, item, &cause); } else if (args_has(args, 'p')) { - size = args_strtonum_and_expand(args, 'l', 0, 100, item, + size = args_strtonum_and_expand(args, 'p', 0, 100, item, &cause); if (cause == NULL) size = curval * size / 100;