diff options
Diffstat (limited to '')
-rw-r--r-- | cmd-pipe-pane.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-pipe-pane.c b/cmd-pipe-pane.c index 0fa656c..268b51b 100644 --- a/cmd-pipe-pane.c +++ b/cmd-pipe-pane.c @@ -68,7 +68,7 @@ cmd_pipe_pane_exec(struct cmd *self, struct cmdq_item *item) sigset_t set, oldset; /* Do nothing if pane is dead. */ - if (wp->fd == -1 || (wp->flags & PANE_EXITED)) { + if (window_pane_exited(wp)) { cmdq_error(item, "target pane has exited"); return (CMD_RETURN_ERROR); } |