mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 06:17:04 +00:00
status-lines -> status, prefix-key -> prefix
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/* $Id: cmd-set-option.c,v 1.31 2008-06-18 22:21:51 nicm Exp $ */
|
||||
/* $Id: cmd-set-option.c,v 1.32 2008-06-19 22:04:02 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -148,15 +148,15 @@ cmd_set_option_exec(struct cmd *self, unused struct cmd_ctx *ctx)
|
||||
ctx->error(ctx, "unknown key: %s", data->value);
|
||||
return;
|
||||
}
|
||||
options_set_key(oo, "prefix-key", key);
|
||||
options_set_key(oo, "prefix", key);
|
||||
} else if (strcmp(data->option, "status") == 0) {
|
||||
if (flag == -1) {
|
||||
ctx->error(ctx, "bad value: %s", data->value);
|
||||
return;
|
||||
}
|
||||
if (flag == -2)
|
||||
flag = !options_get_number(oo, "status-lines");
|
||||
options_set_number(oo, "status-lines", flag);
|
||||
flag = !options_get_number(oo, "status");
|
||||
options_set_number(oo, "status", flag);
|
||||
recalculate_sizes();
|
||||
} else if (strcmp(data->option, "status-fg") == 0) {
|
||||
if (data->value == NULL) {
|
||||
|
Reference in New Issue
Block a user