diff --git a/format.c b/format.c index 56dd7e1f0..19f1baa86 100644 --- a/format.c +++ b/format.c @@ -2876,10 +2876,10 @@ format_cb_session_activity_flag(struct format_tree *ft) if (ft->s != NULL) { RB_FOREACH(wl, winlinks, &ft->s->windows) { - if (ft->wl->flags & WINLINK_ACTIVITY) + if (wl->flags & WINLINK_ACTIVITY) return (xstrdup("1")); - return (xstrdup("0")); } + return (xstrdup("0")); } return (NULL); } @@ -2894,8 +2894,8 @@ format_cb_session_bell_flag(struct format_tree *ft) RB_FOREACH(wl, winlinks, &ft->s->windows) { if (wl->flags & WINLINK_BELL) return (xstrdup("1")); - return (xstrdup("0")); } + return (xstrdup("0")); } return (NULL); } @@ -2908,10 +2908,10 @@ format_cb_session_silence_flag(struct format_tree *ft) if (ft->s != NULL) { RB_FOREACH(wl, winlinks, &ft->s->windows) { - if (ft->wl->flags & WINLINK_SILENCE) + if (wl->flags & WINLINK_SILENCE) return (xstrdup("1")); - return (xstrdup("0")); } + return (xstrdup("0")); } return (NULL); }