From b46926af8d6ccba49018ff0ee6eab186f5e7d5f0 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Thu, 13 Jul 2000 11:03:59 +0000 Subject: fix for _arguments with single-letter options: recognize option-strings with multiple options; in _main_complete stop trying completers when one called _message, don't display warnings in such cases (12241) --- Src/Zle/computil.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Src/Zle/computil.c') diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c index 9ec338b7b..c26e9abc4 100644 --- a/Src/Zle/computil.c +++ b/Src/Zle/computil.c @@ -1088,7 +1088,7 @@ ca_get_opt(Cadef d, char *line, int full, char **end) static Caopt ca_get_sopt(Cadef d, char *line, char **end, LinkList *lp) { - Caopt p; + Caopt p, pp = NULL; char pre = *line++; LinkList l = NULL; @@ -1112,11 +1112,12 @@ ca_get_sopt(Cadef d, char *line, char **end, LinkList *lp) } } else if (!p || (p && !p->active)) return NULL; + pp = p; p = NULL; } - if (p && end) + if (pp && end) *end = line; - return p; + return pp; } /* Return the n'th argument definition. */ -- cgit v1.2.3