Allow colour to be spelt as color, from Boris Verkhovsky. GitHub issue

2317.
This commit is contained in:
nicm
2020-08-25 11:35:32 +00:00
parent e4a4fcfc90
commit 20fcdcfea1
4 changed files with 52 additions and 13 deletions

9
tmux.h
View File

@ -1788,6 +1788,7 @@ enum options_table_type {
struct options_table_entry {
const char *name;
const char *alternative_name;
enum options_table_type type;
int scope;
int flags;
@ -1807,6 +1808,11 @@ struct options_table_entry {
const char *unit;
};
struct options_name_map {
const char *from;
const char *to;
};
/* Common command usages. */
#define CMD_TARGET_PANE_USAGE "[-t target-pane]"
#define CMD_TARGET_WINDOW_USAGE "[-t target-window]"
@ -2039,7 +2045,8 @@ int options_remove_or_default(struct options_entry *, int,
char **);
/* options-table.c */
extern const struct options_table_entry options_table[];
extern const struct options_table_entry options_table[];
extern const struct options_name_map options_other_names[];
/* job.c */
typedef void (*job_update_cb) (struct job *);