diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-03-29 21:07:09 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-03-29 21:07:09 +0000 |
commit | a3e41cf39fecd9bf5b5a393aebd1440082bbd03f (patch) | |
tree | d2057baeedc312b8b7216fb0f06f4e86b592c2ee /usr.bin/tmux | |
parent | d3e3f5e30aca1e3e97a151969adc42eed77f5ef4 (diff) |
Checking for particular options and redrawing is not necessary as we
already redraw unconditionally.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r-- | usr.bin/tmux/cmd-set-option.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/usr.bin/tmux/cmd-set-option.c b/usr.bin/tmux/cmd-set-option.c index b4c2a5a2105..254f4d12e96 100644 --- a/usr.bin/tmux/cmd-set-option.c +++ b/usr.bin/tmux/cmd-set-option.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-set-option.c,v 1.48 2011/03/29 20:31:22 nicm Exp $ */ +/* $OpenBSD: cmd-set-option.c,v 1.49 2011/03/29 21:07:08 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -166,19 +166,6 @@ cmd_set_option_exec(struct cmd *self, struct cmd_ctx *ctx) server_redraw_client(c); } - /* Force redraw when some special cases change. */ - if (strcmp(oe->name, "status-left") == 0 || - strcmp(oe->name, "status-right") == 0 || - strcmp(oe->name, "status") == 0 || - strcmp(oe->name, "set-titles-string") == 0 || - strcmp(oe->name, "window-status-format") == 0) { - for (i = 0; i < ARRAY_LENGTH(&clients); i++) { - c = ARRAY_ITEM(&clients, i); - if (c != NULL && c->session != NULL) - server_redraw_client(c); - } - } - return (0); } |