diff options
author | nicm <nicm> | 2020-07-04 14:24:02 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-07-04 14:24:02 +0000 |
commit | 1e426896611f81dd6306263cb337e7ea7d80238e (patch) | |
tree | e5ee781e439c507a1b92c6ec8f38d48fb4f71364 /tmux.h | |
parent | 43e1577b5d6c40369eb353322f68a12b36d609b0 (diff) | |
download | rtmux-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.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 *); |