Add -B to new-pane/split-window to block until the command exits, like

run-shell -b.
This commit is contained in:
nicm
2026-06-09 09:11:05 +00:00
parent 27c58c764d
commit d5c9196348
5 changed files with 62 additions and 3 deletions

View File

@@ -491,6 +491,8 @@ server_child_exited(pid_t pid, int status)
log_debug("%%%u exited", wp->id);
wp->flags |= PANE_EXITED;
window_pane_block_finish(wp);
if (window_pane_destroy_ready(wp))
server_destroy_pane(wp, 1);
break;