diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-12-04 22:14:47 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-12-04 22:14:47 +0000 |
commit | cc094fdfe6276b93683113f395edbc004837d362 (patch) | |
tree | c685b2f63461b2026d0677c4b8974e3004e114ff /names.c | |
parent | 1caa73afb4da381425160cbff68284a4dab1470b (diff) | |
download | rtmux-cc094fdfe6276b93683113f395edbc004837d362.tar.gz rtmux-cc094fdfe6276b93683113f395edbc004837d362.tar.bz2 rtmux-cc094fdfe6276b93683113f395edbc004837d362.zip |
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...
Diffstat (limited to 'names.c')
-rw-r--r-- | names.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 { |