From bba9f38636a1dd988308526ecfb57c1f612b9f42 Mon Sep 17 00:00:00 2001 From: Dane Jensen Date: Sun, 14 Jun 2026 22:11:57 -0700 Subject: [PATCH] Bug fix for parsing floating args. --- layout.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/layout.c b/layout.c index 7af5b9ce..6cb2cad1 100644 --- a/layout.c +++ b/layout.c @@ -1674,11 +1674,12 @@ layout_get_floating_cell(struct cmdq_item *item, struct args *args, struct window *w, struct window_pane *wp, char **cause) { struct layout_cell *lcnew; - u_int sx, sy; - int ox, oy; + u_int sx = UINT_MAX, sy = UINT_MAX; + int ox = INT_MAX, oy = INT_MAX; - layout_cell_floating_args_parse(item, args, w, &sx, &sy, &ox, &oy, cause); - if (cause != NULL) { + layout_cell_floating_args_parse(item, args, w, &sx, &sy, &ox, &oy, + cause); + if (*cause != NULL) { return (NULL); }