mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 13:37:12 +00:00
options_match needs to explicitly check for user options.
This commit is contained in:
@ -403,6 +403,12 @@ options_match(const char *s, int *idx, int* ambiguous)
|
||||
name = options_parse(s, idx);
|
||||
namelen = strlen(name);
|
||||
|
||||
*idx = -1;
|
||||
if (*name == '@') {
|
||||
*ambiguous = 0;
|
||||
return (xstrdup(name));
|
||||
}
|
||||
|
||||
found = NULL;
|
||||
for (oe = options_table; oe->name != NULL; oe++) {
|
||||
if (strcmp(oe->name, name) == 0) {
|
||||
|
Reference in New Issue
Block a user