=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/format.c,v retrieving revision 1.278 retrieving revision 1.279 diff -c -r1.278 -r1.279 *** src/usr.bin/tmux/format.c 2021/02/26 07:53:26 1.278 --- src/usr.bin/tmux/format.c 2021/02/26 21:53:41 1.279 *************** *** 1,4 **** ! /* $OpenBSD: format.c,v 1.278 2021/02/26 07:53:26 nicm Exp $ */ /* * Copyright (c) 2011 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: format.c,v 1.279 2021/02/26 21:53:41 nicm Exp $ */ /* * Copyright (c) 2011 Nicholas Marriott *************** *** 4696,4707 **** if (c != NULL && s != NULL && c->session != s) log_debug("%s: session does not match", __func__); ! if (s != NULL) ! ft->type = FORMAT_TYPE_SESSION; else if (wl != NULL) ft->type = FORMAT_TYPE_WINDOW; ! else if (wp != NULL) ! ft->type = FORMAT_TYPE_PANE; else ft->type = FORMAT_TYPE_UNKNOWN; --- 4696,4707 ---- if (c != NULL && s != NULL && c->session != s) log_debug("%s: session does not match", __func__); ! if (wp != NULL) ! ft->type = FORMAT_TYPE_PANE; else if (wl != NULL) ft->type = FORMAT_TYPE_WINDOW; ! else if (s != NULL) ! ft->type = FORMAT_TYPE_SESSION; else ft->type = FORMAT_TYPE_UNKNOWN;