summaryrefslogtreecommitdiffstats
path: root/cmd-choose-window.c
authortcunha <tcunha>2010-04-22 21:51:27 (GMT)
committer tcunha <tcunha>2010-04-22 21:51:27 (GMT)
commit34c09294ef51e641df0328d4a8a9a4a1fc62a9cf (patch) (side-by-side diff)
treebdf5b51df1ccf4b6ab8f1ffc22d8894cc89ce415 /cmd-choose-window.c
parent621cbd19e23e714aa80cb6ebd76f4afc783e5f34 (diff)
downloadtmux-old-34c09294ef51e641df0328d4a8a9a4a1fc62a9cf.zip
tmux-old-34c09294ef51e641df0328d4a8a9a4a1fc62a9cf.tar.gz
tmux-old-34c09294ef51e641df0328d4a8a9a4a1fc62a9cf.tar.bz2
Sync OpenBSD patchset 686:
Mark zombie windows as dead in choose-window list, from Romain Francoise.
Diffstat (limited to 'cmd-choose-window.c') (more/less context) (ignore whitespace changes)
-rw-r--r--cmd-choose-window.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd-choose-window.c b/cmd-choose-window.c
index cc40a60..773cf6d 100644
--- a/cmd-choose-window.c
+++ b/cmd-choose-window.c
@@ -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 <[email protected]>
@@ -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);
}