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

2
tmux.h
View File

@@ -1262,6 +1262,7 @@ struct window_pane {
char tty[TTY_NAME_MAX];
int status;
struct timeval dead_time;
struct cmdq_item *block_item; /* new-pane -B: waiting for pane exit */
int fd;
struct bufferevent *event;
@@ -3372,6 +3373,7 @@ struct window *window_find_by_id(u_int);
void window_update_activity(struct window *);
struct window *window_create(u_int, u_int, u_int, u_int);
void window_pane_set_event(struct window_pane *);
void window_pane_block_finish(struct window_pane *);
struct window_pane *window_get_active_at(struct window *, u_int, u_int);
struct window_pane *window_find_string(struct window *, const char *);
int window_has_floating_panes(struct window *);