diff options
author | nicm <nicm> | 2017-01-11 14:56:44 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-01-11 14:56:44 +0000 |
commit | 458b6eb6001fe4f1bff379ac56b91273662abe8c (patch) | |
tree | dcb7746345f6f8b772cba35b9dcc3ac82e26f3dc /cmd-set-option.c | |
parent | 55266275587f3bb6f0dfdb1623cb870315a38213 (diff) | |
download | rtmux-458b6eb6001fe4f1bff379ac56b91273662abe8c.tar.gz rtmux-458b6eb6001fe4f1bff379ac56b91273662abe8c.tar.bz2 rtmux-458b6eb6001fe4f1bff379ac56b91273662abe8c.zip |
Some tidying and tweaks to options code.
Diffstat (limited to 'cmd-set-option.c')
-rw-r--r-- | cmd-set-option.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cmd-set-option.c b/cmd-set-option.c index 7aa09eee..d1b7f331 100644 --- a/cmd-set-option.c +++ b/cmd-set-option.c @@ -117,7 +117,7 @@ cmd_set_option_exec(struct cmd *self, struct cmdq_item *item) if (*optstr == '@') return (cmd_set_option_user(self, item, optstr, valstr)); - /* Find the option entry, try each table. */ + /* Find the option entry. */ oe = NULL; if (options_table_find(optstr, &oe) != 0) { if (!args_has(args, 'q')) { @@ -184,7 +184,7 @@ cmd_set_option_exec(struct cmd *self, struct cmdq_item *item) return (CMD_RETURN_ERROR); } - /* Start or stop timers if necessary. */ + /* Update timers and so on for various options. */ if (strcmp(oe->name, "automatic-rename") == 0) { RB_FOREACH(w, windows, &windows) { if (w->active == NULL) @@ -207,8 +207,6 @@ cmd_set_option_exec(struct cmd *self, struct cmdq_item *item) RB_FOREACH(w, windows, &windows) w->flags |= WINDOW_STYLECHANGED; } - - /* When the pane-border-status option has been changed, resize panes. */ if (strcmp(oe->name, "pane-border-status") == 0) { RB_FOREACH(w, windows, &windows) layout_fix_panes(w, w->sx, w->sy); |