Add some missing checks which make new pane positions off, from Dane

Jensen.
This commit is contained in:
nicm
2026-07-04 18:54:18 +00:00
parent c5a7309966
commit 898a91903a

View File

@@ -1730,7 +1730,7 @@ layout_floating_args_parse(struct cmdq_item *item, struct args *args,
ox = 4; ox = 4;
} }
w->last_new_pane_x = ox; w->last_new_pane_x = ox;
} else } else if (args_has(args, 'X'))
if (lines != PANE_LINES_NONE) if (lines != PANE_LINES_NONE)
ox += 1; ox += 1;
if (oy == INT_MAX) { if (oy == INT_MAX) {
@@ -1742,7 +1742,7 @@ layout_floating_args_parse(struct cmdq_item *item, struct args *args,
oy = 2; oy = 2;
} }
w->last_new_pane_y = oy; w->last_new_pane_y = oy;
} else } else if (args_has(args, 'Y'))
if (lines != PANE_LINES_NONE) if (lines != PANE_LINES_NONE)
oy += 1; oy += 1;