Add a helper to get pane-border-status for a window for some other

changes to come.
This commit is contained in:
nicm
2026-06-14 19:31:37 +00:00
parent 778a15b64a
commit 87976aa48e
7 changed files with 34 additions and 29 deletions

View File

@@ -118,7 +118,7 @@ cmd_resize_pane_exec(struct cmd *self, struct cmdq_item *item)
free(cause);
return (CMD_RETURN_ERROR);
}
status = options_get_number(w->options, "pane-border-status");
status = window_get_pane_status(w);
switch (status) {
case PANE_STATUS_TOP:
if (y != INT_MAX && wp->yoff == 1)