mirror of
https://github.com/tmate-io/tmate.git
synced 2024-12-25 16:19:02 +01:00
Checking for particular options and redrawing is not necessary as we
already redraw unconditionally.
This commit is contained in:
parent
25d551e8b2
commit
beb6db9b5f
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user