diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-10-12 11:24:15 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-10-12 11:24:15 +0000 |
commit | ad4a7423c039513bd55d336c9335013d5328811b (patch) | |
tree | e820af0c5cc36dc28b57a7b20b6007abd24a4bea /cmd-rename-window.c | |
parent | d1589381782732386e07709956f4d6c7ed029d7b (diff) | |
download | rtmux-ad4a7423c039513bd55d336c9335013d5328811b.tar.gz rtmux-ad4a7423c039513bd55d336c9335013d5328811b.tar.bz2 rtmux-ad4a7423c039513bd55d336c9335013d5328811b.zip |
Mark windows in yellow on status line when bell.
Diffstat (limited to 'cmd-rename-window.c')
-rw-r--r-- | cmd-rename-window.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/cmd-rename-window.c b/cmd-rename-window.c index 2a6d4bb8..b8c8ccf3 100644 --- a/cmd-rename-window.c +++ b/cmd-rename-window.c @@ -1,4 +1,4 @@ -/* $Id: cmd-rename-window.c,v 1.4 2007-10-04 22:04:01 nicm Exp $ */ +/* $Id: cmd-rename-window.c,v 1.5 2007-10-12 11:24:15 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -97,7 +97,6 @@ cmd_rename_window_exec(void *ptr, struct cmd_ctx *ctx) struct client *c = ctx->client; struct session *s = ctx->session; struct window *w; - u_int i; if (data == NULL) return; @@ -111,12 +110,7 @@ cmd_rename_window_exec(void *ptr, struct cmd_ctx *ctx) xfree(w->name); w->name = xstrdup(data->newname); - /*XXX*/ - for (i = 0; i < ARRAY_LENGTH(&clients); i++) { - c = ARRAY_ITEM(&clients, i); - if (c != NULL && c->session == s) - server_redraw_status(c); - } + server_status_session(s); if (!(ctx->flags & CMD_KEY)) server_write_client(c, MSG_EXIT, NULL, 0); |