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:
nicm
2015-05-06 08:35:39 +00:00
parent 33a585c47f
commit 31b1ab4852
7 changed files with 25 additions and 17 deletions

1
tmux.h
View File

@ -2328,6 +2328,7 @@ struct winlink *session_attach(struct session *, struct window *, int,
char **);
int session_detach(struct session *, struct winlink *);
int session_has(struct session *, struct window *);
int session_is_linked(struct session *, struct window *);
int session_next(struct session *, int);
int session_previous(struct session *, int);
int session_select(struct session *, int);