Use a stack for last panes line windows, from Thomas Bertschinger in

GitHub issue 3588.
This commit is contained in:
nicm
2023-07-10 09:24:53 +00:00
parent b7e22d00b4
commit 8b3e2eab5a
7 changed files with 59 additions and 26 deletions

View File

@ -1902,7 +1902,7 @@ static void *
format_cb_pane_last(struct format_tree *ft)
{
if (ft->wp != NULL) {
if (ft->wp == ft->wp->window->last)
if (ft->wp == TAILQ_FIRST(&ft->wp->window->last_panes))
return (xstrdup("1"));
return (xstrdup("0"));
}