mirror of
https://github.com/tmux/tmux.git
synced 2024-11-16 17:39:09 +00:00
Check ZOOMED flag on window.
This commit is contained in:
parent
c403bfc894
commit
c8bf8ee931
4
format.c
4
format.c
@ -470,6 +470,8 @@ format_window(struct format_tree *ft, struct window *w)
|
|||||||
format_add(ft, "window_height", "%u", w->sy);
|
format_add(ft, "window_height", "%u", w->sy);
|
||||||
format_add(ft, "window_layout", "%s", layout);
|
format_add(ft, "window_layout", "%s", layout);
|
||||||
format_add(ft, "window_panes", "%u", window_count_panes(w));
|
format_add(ft, "window_panes", "%u", window_count_panes(w));
|
||||||
|
format_add(ft, "window_zoomed_flag", "%u",
|
||||||
|
!!(w->flags & WINDOW_ZOOMED));
|
||||||
|
|
||||||
free(layout);
|
free(layout);
|
||||||
}
|
}
|
||||||
@ -497,8 +499,6 @@ format_winlink(struct format_tree *ft, struct session *s, struct winlink *wl)
|
|||||||
!!(wl->flags & WINLINK_SILENCE));
|
!!(wl->flags & WINLINK_SILENCE));
|
||||||
format_add(ft, "window_last_flag", "%u",
|
format_add(ft, "window_last_flag", "%u",
|
||||||
!!(wl == TAILQ_FIRST(&s->lastw)));
|
!!(wl == TAILQ_FIRST(&s->lastw)));
|
||||||
format_add(ft, "window_zoomed_flag", "%u",
|
|
||||||
!!(wl->flags & WINDOW_ZOOMED));
|
|
||||||
|
|
||||||
free(flags);
|
free(flags);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user