summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/session.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2017-11-02 18:27:35 +0000
committernicm <nicm@openbsd.org>2017-11-02 18:27:35 +0000
commit988c4c87b95a343e015beac42634767576a30eab (patch)
treedab3e5aa346f12418feb14b919133eefd83533e2 /usr.bin/tmux/session.c
parentThere is no point in reflowing panes which have not changed width. (diff)
downloadwireguard-openbsd-988c4c87b95a343e015beac42634767576a30eab.tar.xz
wireguard-openbsd-988c4c87b95a343e015beac42634767576a30eab.zip
Only show the first member of session groups in tree mode (-G flag
disables).
Diffstat (limited to 'usr.bin/tmux/session.c')
-rw-r--r--usr.bin/tmux/session.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/usr.bin/tmux/session.c b/usr.bin/tmux/session.c
index c45b71cac47..bf2e078bf6f 100644
--- a/usr.bin/tmux/session.c
+++ b/usr.bin/tmux/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.77 2017/07/09 22:33:09 nicm Exp $ */
+/* $OpenBSD: session.c,v 1.78 2017/11/02 18:27:35 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -39,10 +39,6 @@ static struct winlink *session_next_alert(struct winlink *);
static struct winlink *session_previous_alert(struct winlink *);
static void session_group_remove(struct session *);
-static u_int session_group_count(struct session_group *);
-static void session_group_synchronize1(struct session *, struct session *);
-
-static u_int session_group_count(struct session_group *);
static void session_group_synchronize1(struct session *, struct session *);
RB_GENERATE(sessions, session, entry, session_cmp);
@@ -624,7 +620,7 @@ session_group_remove(struct session *s)
}
/* Count number of sessions in session group. */
-static u_int
+u_int
session_group_count(struct session_group *sg)
{
struct session *s;