summaryrefslogtreecommitdiffstats
path: root/names.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-10-10 15:23:13 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-10-10 15:23:13 +0000
commit9ed62eeb911ff58efbea7688ed8e77b611dcaaa2 (patch)
treee7e86254e9deeb8ff11402cc1adafbc9d702b99d /names.c
parent6bca92db4ddd2d3d25671aa83e74dd11aca652a8 (diff)
When a window is zombified and automatic-rename is on, append [dead] to the
name.
Diffstat (limited to 'names.c')
-rw-r--r--names.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/names.c b/names.c
index 014a600c..fe26938d 100644
--- a/names.c
+++ b/names.c
@@ -73,6 +73,12 @@ set_window_names(void)
xfree(name);
}
+ if (w->active->fd == -1) {
+ xasprintf(&name, "%s[dead]", wname);
+ xfree(wname);
+ wname = name;
+ }
+
if (strcmp(wname, w->name) == 0)
xfree(wname);
else {