From b73476952312aa4e91432e6574665e953fef5c76 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Tue, 4 Apr 2000 12:56:40 +0000 Subject: fix for comparguments: completion of options after option with rest-arguments was wrong --- Src/Zle/computil.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Src') diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c index 828fe36d0..e73fe8eaf 100644 --- a/Src/Zle/computil.c +++ b/Src/Zle/computil.c @@ -1427,7 +1427,8 @@ bin_comparguments(char *nam, char **args, char *ops, int func) if ((ca_laststate.opt || (ca_laststate.doff && ca_laststate.def) || (ca_laststate.def && (ca_laststate.def->type == CAA_OPT || - ca_laststate.def->type >= CAA_RARGS))) && + (ca_laststate.def->type >= CAA_RARGS && + ca_laststate.def->num < 0)))) && (!ca_laststate.def || ca_laststate.def->type < CAA_RARGS || (ca_laststate.def->type == CAA_RARGS ? (ca_laststate.curpos == ca_laststate.argbeg + 1) : -- cgit 1.4.1