summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tmux.h
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2020-07-04 14:24:02 +0000
committernicm <nicm@openbsd.org>2020-07-04 14:24:02 +0000
commitfedaf9c87b9e2f29ceb59c1080900e7c6e537cc2 (patch)
treee5ee7de9fcfc90f0b1c7018e5fe7a5d869236c8b /usr.bin/tmux/tmux.h
parentSmall XXX. (diff)
downloadwireguard-openbsd-fedaf9c87b9e2f29ceb59c1080900e7c6e537cc2.tar.xz
wireguard-openbsd-fedaf9c87b9e2f29ceb59c1080900e7c6e537cc2.zip
kill-window -a cannot just walk the list of windows because if
renumber-windows is on, the window it wants to keep could be moved. Change to renumber afterwards and also behave better if the window is linked into the session twice. GitHub issue 2287.
Diffstat (limited to 'usr.bin/tmux/tmux.h')
-rw-r--r--usr.bin/tmux/tmux.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h
index b4168c7212f..99a941f14b5 100644
--- a/usr.bin/tmux/tmux.h
+++ b/usr.bin/tmux/tmux.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmux.h,v 1.1071 2020/06/18 08:34:22 nicm Exp $ */
+/* $OpenBSD: tmux.h,v 1.1072 2020/07/04 14:24:02 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -2420,7 +2420,9 @@ void server_lock(void);
void server_lock_session(struct session *);
void server_lock_client(struct client *);
void server_kill_pane(struct window_pane *);
-void server_kill_window(struct window *);
+void server_kill_window(struct window *, int);
+void server_renumber_session(struct session *);
+void server_renumber_all(void);
int server_link_window(struct session *,
struct winlink *, struct session *, int, int, int, char **);
void server_unlink_window(struct session *, struct winlink *);