diff options
author | nicm <nicm> | 2019-05-03 20:44:24 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-05-03 20:44:24 +0000 |
commit | 9f75635596d0a01282156eb9e17fde6f4205c05c (patch) | |
tree | c2992361a46c5ed7a17c2f273d3e8aba5bc16480 /format.c | |
parent | e8e4f4ec3e4de0bd0e4eb2a7ee995fb6f5f7f937 (diff) | |
download | rtmux-9f75635596d0a01282156eb9e17fde6f4205c05c.tar.gz rtmux-9f75635596d0a01282156eb9e17fde6f4205c05c.tar.bz2 rtmux-9f75635596d0a01282156eb9e17fde6f4205c05c.zip |
Allow panes to be empty (no command), output can be piped to them with
split-window or display-message -I.
Diffstat (limited to 'format.c')
-rw-r--r-- | format.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -2031,7 +2031,10 @@ format_defaults_pane(struct format_tree *ft, struct window_pane *wp) if ((wp->flags & PANE_STATUSREADY) && WIFEXITED(status)) format_add(ft, "pane_dead_status", "%d", WEXITSTATUS(status)); - format_add(ft, "pane_dead", "%d", wp->fd == -1); + if (~wp->flags & PANE_EMPTY) + format_add(ft, "pane_dead", "%d", wp->fd == -1); + else + format_add(ft, "pane_dead", "0"); format_add(ft, "pane_left", "%u", wp->xoff); format_add(ft, "pane_top", "%u", wp->yoff); |