mirror of
https://github.com/tmux/tmux.git
synced 2026-05-30 14:16:18 +00:00
Check error result correctly (*cause not cause), pointed out by jsg.
This commit is contained in:
2
window.c
2
window.c
@@ -2091,7 +2091,7 @@ window_pane_tiled_geometry(struct window *w, struct window_pane *wp,
|
|||||||
} else if (args_has(args, 'p')) {
|
} else if (args_has(args, 'p')) {
|
||||||
size = args_strtonum_and_expand(args, 'p', 0, 100, item,
|
size = args_strtonum_and_expand(args, 'p', 0, 100, item,
|
||||||
cause);
|
cause);
|
||||||
if (cause == NULL)
|
if (*cause == NULL)
|
||||||
size = curval * size / 100;
|
size = curval * size / 100;
|
||||||
}
|
}
|
||||||
if (*cause != NULL)
|
if (*cause != NULL)
|
||||||
|
|||||||
Reference in New Issue
Block a user