Check error result correctly (*cause not cause), pointed out by jsg.

This commit is contained in:
nicm
2026-05-27 07:01:36 +00:00
parent bfd7f468ce
commit 27d719cd4d

View File

@@ -2091,7 +2091,7 @@ window_pane_tiled_geometry(struct window *w, struct window_pane *wp,
} else if (args_has(args, 'p')) {
size = args_strtonum_and_expand(args, 'p', 0, 100, item,
cause);
if (cause == NULL)
if (*cause == NULL)
size = curval * size / 100;
}
if (*cause != NULL)