style fixes

This commit is contained in:
Dane Jensen
2026-05-18 15:41:28 -07:00
parent 76196b8ffa
commit c3fc0229e5

View File

@@ -2165,9 +2165,9 @@ window_pane_tile_geometry(struct window *w, struct window_pane *wp, int *out_siz
if (cause == NULL) if (cause == NULL)
size = curval * (size) / 100; size = curval * (size) / 100;
} }
if (*cause != NULL) { if (*cause != NULL)
return (-1); return (-1);
}
if (args_has(args, 'b')) if (args_has(args, 'b'))
flags |= SPAWN_BEFORE; flags |= SPAWN_BEFORE;
if (args_has(args, 'f')) if (args_has(args, 'f'))
@@ -2205,25 +2205,22 @@ window_pane_float_geometry(struct window *w, struct window_pane *wp,
if (args_has(args, 'x')) { if (args_has(args, 'x')) {
sx = args_percentage_and_expand(args, 'x', 0, USHRT_MAX, w->sx, sx = args_percentage_and_expand(args, 'x', 0, USHRT_MAX, w->sx,
item, cause); item, cause);
if (*cause != NULL) { if (*cause != NULL)
return (-1); return (-1);
}
} }
if (args_has(args, 'y')) { if (args_has(args, 'y')) {
sy = args_percentage_and_expand(args, 'y', 0, USHRT_MAX, w->sy, sy = args_percentage_and_expand(args, 'y', 0, USHRT_MAX, w->sy,
item, cause); item, cause);
if (*cause != NULL) { if (*cause != NULL)
return (-1); return (-1);
}
} }
/* Position defaults to cascading when not defined */ /* Position defaults to cascading when not defined */
if (args_has(args, 'X')) { if (args_has(args, 'X')) {
x = args_percentage_and_expand(args, 'X', 0, USHRT_MAX, w->sx, x = args_percentage_and_expand(args, 'X', 0, USHRT_MAX, w->sx,
item, cause); item, cause);
if (*cause != NULL) { if (*cause != NULL)
return (-1); return (-1);
}
} else { } else {
if (w->last_new_pane_x == 0) if (w->last_new_pane_x == 0)
x = cx; x = cx;
@@ -2237,9 +2234,8 @@ window_pane_float_geometry(struct window *w, struct window_pane *wp,
if (args_has(args, 'Y')) { if (args_has(args, 'Y')) {
y = args_percentage_and_expand(args, 'Y', 0, USHRT_MAX, w->sy, y = args_percentage_and_expand(args, 'Y', 0, USHRT_MAX, w->sy,
item, cause); item, cause);
if (*cause != NULL) { if (*cause != NULL)
return (-1); return (-1);
}
} else { } else {
if (w->last_new_pane_y == 0) if (w->last_new_pane_y == 0)
y = cy; y = cy;