mirror of https://github.com/tmux/tmux.git
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
parent
608d113486
commit
2d1afa0e62
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue