diff options
Diffstat (limited to 'usr.bin/tmux/names.c')
-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 * |