Do not rely on window reference count for linked formats because they

are also used for notifications, GitHub issue 4258.
This commit is contained in:
nicm
2024-11-25 08:34:01 +00:00
parent 5fd45b3892
commit 420af9e108
3 changed files with 39 additions and 10 deletions

3
tmux.h
View File

@ -3348,9 +3348,12 @@ void control_notify_paste_buffer_deleted(const char *);
/* session.c */
extern struct sessions sessions;
extern struct session_groups session_groups;
extern u_int next_session_id;
int session_cmp(struct session *, struct session *);
RB_PROTOTYPE(sessions, session, entry, session_cmp);
int session_group_cmp(struct session_group *, struct session_group *s2);
RB_PROTOTYPE(session_groups, session_group, entry, session_group_cmp);
int session_alive(struct session *);
struct session *session_find(const char *);
struct session *session_find_by_id_str(const char *);