From 7b3ec54ebe05e9f5d415f95ed9c5c3f39a1e60a2 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Thu, 13 Oct 2016 10:03:13 +0200 Subject: 39611: with _arguments sets completion stopped if one of the rest arguments starts with a dash --- Src/Zle/computil.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Src/Zle') diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c index e9bad1cab..cb3c32f1f 100644 --- a/Src/Zle/computil.c +++ b/Src/Zle/computil.c @@ -2158,7 +2158,8 @@ ca_parse_line(Cadef d, int multi, int first) state.opt = 0; else state.curopt = NULL; - } else if (multi && (*line == '-' || *line == '+') && cur != compcurrent + } else if (multi && (*line == '-' || *line == '+') && cur != compcurrent && + ca_get_opt(d, line, 0, NULL) #if 0 /**** Ouch. Using this will disable the mutual exclusion of different sets. Not using it will make the -A -- cgit 1.4.1