Do not close panes until process has exited and any outstanding data

has been written to the pipe-pane event if there is one. GitHub issue 991.
This commit is contained in:
nicm
2017-07-03 08:16:03 +00:00
parent 42285ac989
commit 28687f2d55
4 changed files with 51 additions and 5 deletions

4
tmux.h
View File

@ -768,6 +768,8 @@ struct window_pane {
#define PANE_FOCUSPUSH 0x20
#define PANE_INPUTOFF 0x40
#define PANE_CHANGED 0x80
#define PANE_ERROR 0x100
#define PANE_EXITED 0x200
int argc;
char **argv;
@ -2133,6 +2135,7 @@ u_int window_count_panes(struct window *);
void window_destroy_panes(struct window *);
struct window_pane *window_pane_find_by_id_str(const char *);
struct window_pane *window_pane_find_by_id(u_int);
int window_pane_destroy_ready(struct window_pane *);
int window_pane_spawn(struct window_pane *, int, char **,
const char *, const char *, const char *, struct environ *,
struct termios *, char **);
@ -2154,7 +2157,6 @@ void window_pane_key(struct window_pane *, struct client *,
int window_pane_outside(struct window_pane *);
int window_pane_visible(struct window_pane *);
u_int window_pane_search(struct window_pane *, const char *);
const char *window_printable_flags(struct winlink *);
struct window_pane *window_pane_find_up(struct window_pane *);
struct window_pane *window_pane_find_down(struct window_pane *);