Add window_marked_flag, GitHub issue 1887.

This commit is contained in:
nicm
2019-09-11 06:43:17 +00:00
parent 0feae4d8ae
commit a23ce1b45f
2 changed files with 6 additions and 0 deletions

View File

@ -2197,6 +2197,11 @@ format_defaults_winlink(struct format_tree *ft, struct winlink *wl)
format_add(ft, "window_end_flag", "%d",
!!(wl == RB_MAX(winlinks, &s->windows)));
if (server_check_marked() && marked_pane.wl == wl)
format_add(ft, "window_marked_flag", "1");
else
format_add(ft, "window_marked_flag", "0");
format_add(ft, "window_bell_flag", "%d",
!!(wl->flags & WINLINK_BELL));
format_add(ft, "window_activity_flag", "%d",