aboutsummaryrefslogtreecommitdiff
path: root/cmd-join-pane.c
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 /cmd-join-pane.c
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 'cmd-join-pane.c')
-rw-r--r--cmd-join-pane.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-join-pane.c b/cmd-join-pane.c
index 9802083d..904d2c29 100644
--- a/cmd-join-pane.c
+++ b/cmd-join-pane.c
@@ -160,7 +160,7 @@ cmd_join_pane_exec(struct cmd *self, struct cmdq_item *item)
server_status_session(dst_s);
if (window_count_panes(src_w) == 0)
- server_kill_window(src_w);
+ server_kill_window(src_w, 1);
else
notify_window("window-layout-changed", src_w);
notify_window("window-layout-changed", dst_w);