diff options
author | nicm <nicm> | 2019-03-14 21:41:30 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-03-14 21:41:30 +0000 |
commit | 4206bcc10ef936a34eabb32f94a58a6cdd4ec907 (patch) | |
tree | bfca0c96be8bcf383de2ce47d372a803bc4c7527 /format.c | |
parent | 38064e759342b38fbeea48ea716b7d29679271b1 (diff) | |
download | rtmux-4206bcc10ef936a34eabb32f94a58a6cdd4ec907.tar.gz rtmux-4206bcc10ef936a34eabb32f94a58a6cdd4ec907.tar.bz2 rtmux-4206bcc10ef936a34eabb32f94a58a6cdd4ec907.zip |
Add format flags for start and end window.
Diffstat (limited to 'format.c')
-rw-r--r-- | format.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1797,6 +1797,11 @@ format_defaults_winlink(struct format_tree *ft, struct winlink *wl) format_add(ft, "window_flags", "%s", window_printable_flags(wl)); format_add(ft, "window_active", "%d", wl == s->curw); + format_add(ft, "window_start_flag", "%d", + !!(wl == RB_MIN(winlinks, &s->windows))); + format_add(ft, "window_end_flag", "%d", + !!(wl == RB_MAX(winlinks, &s->windows))); + format_add(ft, "window_bell_flag", "%d", !!(wl->flags & WINLINK_BELL)); format_add(ft, "window_activity_flag", "%d", |