summaryrefslogtreecommitdiffstats
path: root/cmd-pipe-pane.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2024-02-13 10:01:10 +0000
committerThomas Adam <thomas@xteddy.org>2024-02-13 10:01:10 +0000
commit0960862950476a5a519905487d731a8b843d07c2 (patch)
tree72b24ad259c3e0c78f1cf166b35b60e718240eab /cmd-pipe-pane.c
parent44ad25b3673cf9fddc92ed122e51cd9beb50d4f7 (diff)
parent40b97b1715182b0ab0274b0c402b34e2cba98f04 (diff)
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-pipe-pane.c')
-rw-r--r--cmd-pipe-pane.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-pipe-pane.c b/cmd-pipe-pane.c
index 0fa656ce..268b51bf 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);
}