summaryrefslogtreecommitdiffstats
path: root/cmd-set-option.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2011-03-29 21:07:08 +0000
committerNicholas Marriott <nicm@openbsd.org>2011-03-29 21:07:08 +0000
commitbeb6db9b5f60b34b69b8cbe44a6422e84f582465 (patch)
tree6d65dd6d264bb2a56cba6f08afb876fddd627fe3 /cmd-set-option.c
parent25d551e8b257699a3066b6aae247d97d8ddf7c7a (diff)
Checking for particular options and redrawing is not necessary as we
already redraw unconditionally.
Diffstat (limited to 'cmd-set-option.c')
-rw-r--r--cmd-set-option.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/cmd-set-option.c b/cmd-set-option.c
index 13fc5eb8..fffbc5b4 100644
--- a/cmd-set-option.c
+++ b/cmd-set-option.c
@@ -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);
}