mirror of
https://github.com/tmux/tmux.git
synced 2026-03-06 15:55:33 +00:00
Also check PANE_STATUSREADY for pane_dead format to match
pane_dead_status. GitHub issue 4841 from Joshua Pollack.
This commit is contained in:
6
format.c
6
format.c
@@ -1998,8 +1998,10 @@ format_cb_pane_bottom(struct format_tree *ft)
|
||||
static void *
|
||||
format_cb_pane_dead(struct format_tree *ft)
|
||||
{
|
||||
if (ft->wp != NULL) {
|
||||
if (ft->wp->fd == -1)
|
||||
struct window_pane *wp = ft->wp;
|
||||
|
||||
if (wp != NULL) {
|
||||
if (wp->fd == -1 && (wp->flags & PANE_STATUSREADY))
|
||||
return (xstrdup("1"));
|
||||
return (xstrdup("0"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user