Add support for non-array command options

A followup commit will add a new default-client-command option.

Addresses #4416
This commit is contained in:
David Mandelberg
2025-03-21 15:48:03 -04:00
parent dbdc07e5ec
commit 557c2d7b25
2 changed files with 62 additions and 0 deletions

3
tmux.h
View File

@@ -2393,10 +2393,13 @@ struct options_entry *options_match_get(struct options *, const char *, int *,
int, int *);
const char *options_get_string(struct options *, const char *);
long long options_get_number(struct options *, const char *);
const struct cmd_list *options_get_command(struct options *, const char *);
struct options_entry * printflike(4, 5) options_set_string(struct options *,
const char *, int, const char *, ...);
struct options_entry *options_set_number(struct options *, const char *,
long long);
struct options_entry *options_set_command(struct options *, const char *,
struct cmd_list *);
int options_scope_from_name(struct args *, int,
const char *, struct cmd_find_state *, struct options **,
char **);