1
0
mirror of https://github.com/tmux/tmux.git synced 2025-04-24 05:18:47 +00:00

Sync OpenBSD patchset 375:

When a window is zombified and automatic-rename is on, append [dead] to the
name.
This commit is contained in:
Tiago Cunha 2009-10-12 00:03:04 +00:00
parent 3e93bdf31b
commit bc90c7c199

View File

@ -1,4 +1,4 @@
/* $Id: names.c,v 1.16 2009-09-20 22:11:27 tcunha Exp $ */ /* $Id: names.c,v 1.17 2009-10-12 00:03:04 tcunha Exp $ */
/* /*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@ -73,6 +73,12 @@ set_window_names(void)
xfree(name); xfree(name);
} }
if (w->active->fd == -1) {
xasprintf(&name, "%s[dead]", wname);
xfree(wname);
wname = name;
}
if (strcmp(wname, w->name) == 0) if (strcmp(wname, w->name) == 0)
xfree(wname); xfree(wname);
else { else {