diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2012-03-09 21:11:29 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2012-03-09 21:11:29 +0000 |
commit | 885c6018c00fd5b42fdd543304d2bb827527b33e (patch) | |
tree | 978024cf8b8af8559e2cdc7c923f3f3df430b497 /usr.bin | |
parent | 0afcfe82839e17adc0960f4aaf722cbf785542d3 (diff) |
Add a missing call to window_set_name, from George Nachman.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tmux/names.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/usr.bin/tmux/names.c b/usr.bin/tmux/names.c index 46f953998c2..9d1accfabe4 100644 --- a/usr.bin/tmux/names.c +++ b/usr.bin/tmux/names.c @@ -1,4 +1,4 @@ -/* $OpenBSD: names.c,v 1.11 2009/12/03 22:50:10 nicm Exp $ */ +/* $OpenBSD: names.c,v 1.12 2012/03/09 21:11:28 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -78,13 +78,11 @@ window_name_callback(unused int fd, unused short events, void *data) wname = name; } - if (strcmp(wname, w->name) == 0) - xfree(wname); - else { - xfree(w->name); - w->name = wname; + if (strcmp(wname, w->name)) { + window_set_name(w, wname); server_status_window(w); } + xfree(wname); } char * |