=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/format.c,v retrieving revision 1.315 retrieving revision 1.316 diff -u -r1.315 -r1.316 --- src/usr.bin/tmux/format.c 2023/07/03 10:48:26 1.315 +++ src/usr.bin/tmux/format.c 2023/07/10 09:24:53 1.316 @@ -1,4 +1,4 @@ -/* $OpenBSD: format.c,v 1.315 2023/07/03 10:48:26 nicm Exp $ */ +/* $OpenBSD: format.c,v 1.316 2023/07/10 09:24:53 nicm Exp $ */ /* * Copyright (c) 2011 Nicholas Marriott @@ -1902,7 +1902,7 @@ 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")); }