diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2010-04-21 21:41:21 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2010-04-21 21:41:21 +0000 |
commit | 261b6b861563e9b969da15361609b75cd2b800bc (patch) | |
tree | 6e02ff4d6b80db1340ad150d9223092ccbd33909 /cmd-choose-window.c | |
parent | 3ae1b8269580551b7bf8f0904bcd59611b69aa41 (diff) | |
download | rtmux-261b6b861563e9b969da15361609b75cd2b800bc.tar.gz rtmux-261b6b861563e9b969da15361609b75cd2b800bc.tar.bz2 rtmux-261b6b861563e9b969da15361609b75cd2b800bc.zip |
Mark zombie windows as dead in choose-window list, from Romain Francoise.
Diffstat (limited to 'cmd-choose-window.c')
-rw-r--r-- | cmd-choose-window.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd-choose-window.c b/cmd-choose-window.c index 18b08751..f8318105 100644 --- a/cmd-choose-window.c +++ b/cmd-choose-window.c @@ -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); } |