diff options
Diffstat (limited to 'usr.bin/tmux/options.c')
-rw-r--r-- | usr.bin/tmux/options.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/tmux/options.c b/usr.bin/tmux/options.c index a70db4e9201..9abee080e6a 100644 --- a/usr.bin/tmux/options.c +++ b/usr.bin/tmux/options.c @@ -1,4 +1,4 @@ -/* $OpenBSD: options.c,v 1.28 2017/01/16 23:45:08 nicm Exp $ */ +/* $OpenBSD: options.c,v 1.29 2017/01/18 08:40:50 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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) { |