mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Add a format window_linked which is 1 if a window has been linked
multiple times, also remove the default space in window_flags and use a conditional to add it in window-status-format (this means additional flags can be added in the option without extra spaces). From Thomas Adam with tweaks by me.
This commit is contained in:
1
format.c
1
format.c
@ -621,6 +621,7 @@ format_defaults_winlink(struct format_tree *ft, struct session *s,
|
||||
!!(wl->flags & WINLINK_SILENCE));
|
||||
format_add(ft, "window_last_flag", "%d",
|
||||
!!(wl == TAILQ_FIRST(&s->lastw)));
|
||||
format_add(ft, "window_linked", "%d", session_is_linked(s, wl->window));
|
||||
|
||||
free(flags);
|
||||
}
|
||||
|
Reference in New Issue
Block a user