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.
pull/3840/head
Bryan Childs 2024-02-15 09:43:50 +10:00 committed by GitHub
parent 608d113486
commit 2d1afa0e62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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;