mirror of
https://github.com/tmate-io/tmate.git
synced 2025-02-03 11:59:13 +01:00
Sync OpenBSD patchset 686:
Mark zombie windows as dead in choose-window list, from Romain Francoise.
This commit is contained in:
parent
2bc150d16d
commit
c4c542efb9
@ -1,4 +1,4 @@
|
|||||||
/* $Id: cmd-choose-window.c,v 1.20 2009-12-04 22:14:47 tcunha Exp $ */
|
/* $Id: cmd-choose-window.c,v 1.21 2010-04-22 21:51:27 tcunha Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -101,8 +101,9 @@ cmd_choose_window_exec(struct cmd *self, struct cmd_ctx *ctx)
|
|||||||
left = right = "";
|
left = right = "";
|
||||||
|
|
||||||
window_choose_add(wl->window->active,
|
window_choose_add(wl->window->active,
|
||||||
wm->idx, "%3d: %s%c [%ux%u] (%u panes)%s%s%s",
|
wm->idx, "%3d: %s%c [%ux%u] (%u panes%s)%s%s%s",
|
||||||
wm->idx, w->name, flag, w->sx, w->sy, window_count_panes(w),
|
wm->idx, w->name, flag, w->sx, w->sy, window_count_panes(w),
|
||||||
|
w->active->fd == -1 ? ", dead" : "",
|
||||||
left, title, right);
|
left, title, right);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user