aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2020-07-04 14:24:02 +0000
committernicm <nicm>2020-07-04 14:24:02 +0000
commit1e426896611f81dd6306263cb337e7ea7d80238e (patch)
treee5ee781e439c507a1b92c6ec8f38d48fb4f71364 /tmux.h
parent43e1577b5d6c40369eb353322f68a12b36d609b0 (diff)
downloadrtmux-1e426896611f81dd6306263cb337e7ea7d80238e.tar.gz
rtmux-1e426896611f81dd6306263cb337e7ea7d80238e.tar.bz2
rtmux-1e426896611f81dd6306263cb337e7ea7d80238e.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 'tmux.h')
-rw-r--r--tmux.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/tmux.h b/tmux.h
index 0a1a740b..a8c67051 100644
--- a/tmux.h
+++ b/tmux.h
@@ -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 *);