diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-12-03 22:50:09 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-12-03 22:50:09 +0000 |
commit | 15a64b805e46584d37cc6745383709632e287999 (patch) | |
tree | 5a55f5006585c9cdde05163251fd99da243575b5 /cmd-set-option.c | |
parent | 6c9862662fd2cccdc55be9d447a27b10f33ed8ea (diff) | |
download | rtmux-15a64b805e46584d37cc6745383709632e287999.tar.gz rtmux-15a64b805e46584d37cc6745383709632e287999.tar.bz2 rtmux-15a64b805e46584d37cc6745383709632e287999.zip |
Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last
time now I've configured emacs to make them displayed in really annoying
colours...
Diffstat (limited to 'cmd-set-option.c')
-rw-r--r-- | cmd-set-option.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/cmd-set-option.c b/cmd-set-option.c index e58ac7d2..0cd7dca6 100644 --- a/cmd-set-option.c +++ b/cmd-set-option.c @@ -34,17 +34,17 @@ const char *cmd_set_option_print( void cmd_set_option_string(struct cmd_ctx *, struct options *, const struct set_option_entry *, char *, int); void cmd_set_option_number(struct cmd_ctx *, - struct options *, const struct set_option_entry *, char *); + struct options *, const struct set_option_entry *, char *); void cmd_set_option_keys(struct cmd_ctx *, - struct options *, const struct set_option_entry *, char *); + struct options *, const struct set_option_entry *, char *); void cmd_set_option_colour(struct cmd_ctx *, - struct options *, const struct set_option_entry *, char *); + struct options *, const struct set_option_entry *, char *); void cmd_set_option_attributes(struct cmd_ctx *, - struct options *, const struct set_option_entry *, char *); + struct options *, const struct set_option_entry *, char *); void cmd_set_option_flag(struct cmd_ctx *, - struct options *, const struct set_option_entry *, char *); + struct options *, const struct set_option_entry *, char *); void cmd_set_option_choice(struct cmd_ctx *, - struct options *, const struct set_option_entry *, char *); + struct options *, const struct set_option_entry *, char *); const struct cmd_entry cmd_set_option_entry = { "set-option", "set", @@ -103,7 +103,7 @@ const struct set_option_entry set_session_option_table[] = { { "status-bg", SET_OPTION_COLOUR, 0, 0, NULL }, { "status-fg", SET_OPTION_COLOUR, 0, 0, NULL }, { "status-interval", SET_OPTION_NUMBER, 0, INT_MAX, NULL }, - { "status-justify", + { "status-justify", SET_OPTION_CHOICE, 0, 0, set_option_status_justify_list }, { "status-keys", SET_OPTION_CHOICE, 0, 0, set_option_status_keys_list }, { "status-left", SET_OPTION_STRING, 0, 0, NULL }, @@ -116,11 +116,11 @@ const struct set_option_entry set_session_option_table[] = { { "status-right-bg", SET_OPTION_COLOUR, 0, 0, NULL }, { "status-right-fg", SET_OPTION_COLOUR, 0, 0, NULL }, { "status-right-length", SET_OPTION_NUMBER, 0, SHRT_MAX, NULL }, - { "status-utf8", SET_OPTION_FLAG, 0, 0, NULL }, + { "status-utf8", SET_OPTION_FLAG, 0, 0, NULL }, { "terminal-overrides", SET_OPTION_STRING, 0, 0, NULL }, { "update-environment", SET_OPTION_STRING, 0, 0, NULL }, { "visual-activity", SET_OPTION_FLAG, 0, 0, NULL }, - { "visual-bell", SET_OPTION_FLAG, 0, 0, NULL }, + { "visual-bell", SET_OPTION_FLAG, 0, 0, NULL }, { "visual-content", SET_OPTION_FLAG, 0, 0, NULL }, { NULL, 0, 0, 0, NULL } }; @@ -266,7 +266,7 @@ cmd_set_option_exec(struct cmd *self, struct cmd_ctx *ctx) server_redraw_client(c); } - /* + /* * Special-case: kill all persistent jobs if status-left, status-right * or set-titles-string have changed. Persistent jobs are only used by * the status line at the moment so this works XXX. @@ -282,7 +282,7 @@ cmd_set_option_exec(struct cmd *self, struct cmd_ctx *ctx) jobs = &c->status_jobs; do { - try_again = 0; + try_again = 0; job = RB_ROOT(jobs); while (job != NULL) { nextjob = RB_NEXT(jobs, jobs, job); @@ -366,7 +366,7 @@ cmd_set_option_string(struct cmd_ctx *ctx, struct options *oo, xasprintf(&newvalue, "%s%s", oldvalue, value); } else newvalue = value; - + o = options_set_string(oo, entry->name, "%s", newvalue); ctx->info(ctx, "set option: %s -> %s", o->name, cmd_set_option_print(entry, o)); |