From 898a91903af87e2a75cb7dbc2fa71a4289ee91a0 Mon Sep 17 00:00:00 2001 From: nicm Date: Sat, 4 Jul 2026 18:54:18 +0000 Subject: [PATCH] Add some missing checks which make new pane positions off, from Dane Jensen. --- layout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layout.c b/layout.c index 11c292bba..f020ef8ba 100644 --- a/layout.c +++ b/layout.c @@ -1730,7 +1730,7 @@ layout_floating_args_parse(struct cmdq_item *item, struct args *args, ox = 4; } w->last_new_pane_x = ox; - } else + } else if (args_has(args, 'X')) if (lines != PANE_LINES_NONE) ox += 1; if (oy == INT_MAX) { @@ -1742,7 +1742,7 @@ layout_floating_args_parse(struct cmdq_item *item, struct args *args, oy = 2; } w->last_new_pane_y = oy; - } else + } else if (args_has(args, 'Y')) if (lines != PANE_LINES_NONE) oy += 1;