version 1.102, 2016/11/04 18:56:25 |
version 1.103, 2017/01/11 14:56:44 |
|
|
if (*optstr == '@') |
if (*optstr == '@') |
return (cmd_set_option_user(self, item, optstr, valstr)); |
return (cmd_set_option_user(self, item, optstr, valstr)); |
|
|
/* Find the option entry, try each table. */ |
/* Find the option entry. */ |
oe = NULL; |
oe = NULL; |
if (options_table_find(optstr, &oe) != 0) { |
if (options_table_find(optstr, &oe) != 0) { |
if (!args_has(args, 'q')) { |
if (!args_has(args, 'q')) { |
|
|
return (CMD_RETURN_ERROR); |
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) { |
if (strcmp(oe->name, "automatic-rename") == 0) { |
RB_FOREACH(w, windows, &windows) { |
RB_FOREACH(w, windows, &windows) { |
if (w->active == NULL) |
if (w->active == NULL) |
|
|
RB_FOREACH(w, windows, &windows) |
RB_FOREACH(w, windows, &windows) |
w->flags |= WINDOW_STYLECHANGED; |
w->flags |= WINDOW_STYLECHANGED; |
} |
} |
|
|
/* When the pane-border-status option has been changed, resize panes. */ |
|
if (strcmp(oe->name, "pane-border-status") == 0) { |
if (strcmp(oe->name, "pane-border-status") == 0) { |
RB_FOREACH(w, windows, &windows) |
RB_FOREACH(w, windows, &windows) |
layout_fix_panes(w, w->sx, w->sy); |
layout_fix_panes(w, w->sx, w->sy); |