From 567e221218ed1e882a42235b100b1e023b52e1b7 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Thu, 11 May 2000 11:27:39 +0000 Subject: make _argument_sets add the options as defaults when there is nothing else to complete (11324) --- Src/Zle/computil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/Zle/computil.c') diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c index c47914db7..483823798 100644 --- a/Src/Zle/computil.c +++ b/Src/Zle/computil.c @@ -1339,7 +1339,7 @@ ca_parse_line(Cadef d, int multi) state.nargbeg = cur - 1; state.argend = argend; } - if (!d->args && !d->rest && *line != '-' && *line != '+') + if (!d->args && !d->rest && *line && *line != '-' && *line != '+') return 1; if ((adef = state.def = ca_get_arg(d, state.nth)) && (state.def->type == CAA_RREST || -- cgit v1.2.3