mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 06:17:04 +00:00
Sync OpenBSD patchset 581:
Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last time now I've configured emacs to make them displayed in really annoying colours...
This commit is contained in:
8
names.c
8
names.c
@ -1,4 +1,4 @@
|
||||
/* $Id: names.c,v 1.20 2009-11-28 14:50:36 tcunha Exp $ */
|
||||
/* $Id: names.c,v 1.21 2009-12-04 22:14:47 tcunha Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -59,7 +59,7 @@ window_name_callback(unused int fd, unused short events, void *data)
|
||||
if (name == NULL)
|
||||
wname = default_window_name(w);
|
||||
else {
|
||||
/*
|
||||
/*
|
||||
* If tmux is using the default command, it will be a login
|
||||
* shell and argv[0] may have a - prefix. Remove this if it is
|
||||
* present. Ick.
|
||||
@ -71,13 +71,13 @@ window_name_callback(unused int fd, unused short events, void *data)
|
||||
wname = parse_window_name(name);
|
||||
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 {
|
||||
|
Reference in New Issue
Block a user