summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2010-04-21 21:41:22 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2010-04-21 21:41:22 +0000
commit6eefdaa84a48152289e968a9f5ea3d8324a4404c (patch)
treeca32a46abce77e911c273d99a58a9949fb5a0178
parentbad4ad66b980ce6b89cf7b3578cdfd3098b929b6 (diff)
Mark zombie windows as dead in choose-window list, from Romain Francoise.
-rw-r--r--usr.bin/tmux/cmd-choose-window.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-choose-window.c b/usr.bin/tmux/cmd-choose-window.c
index 5032a7cb24e..9a683c625f2 100644
--- a/usr.bin/tmux/cmd-choose-window.c
+++ b/usr.bin/tmux/cmd-choose-window.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-choose-window.c,v 1.12 2009/12/03 22:50:10 nicm Exp $ */
+/* $OpenBSD: cmd-choose-window.c,v 1.13 2010/04/21 21:41:21 nicm Exp $ */
/*
* 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 = "";
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),
+ w->active->fd == -1 ? ", dead" : "",
left, title, right);
}