summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2016-10-13 10:03:13 +0200
committerOliver Kiddle <opk@zsh.org>2016-10-13 10:03:13 +0200
commit7b3ec54ebe05e9f5d415f95ed9c5c3f39a1e60a2 (patch)
tree87a0b6b0c5cea229855198c5a5cad647b67114a1 /Src
parentc40226022a4fa8990c83ac1f3300c84295da353b (diff)
downloadzsh-7b3ec54ebe05e9f5d415f95ed9c5c3f39a1e60a2.tar.gz
zsh-7b3ec54ebe05e9f5d415f95ed9c5c3f39a1e60a2.tar.xz
zsh-7b3ec54ebe05e9f5d415f95ed9c5c3f39a1e60a2.zip
39611: with _arguments sets completion stopped if one of the rest arguments starts with a dash
Diffstat (limited to 'Src')
-rw-r--r--Src/Zle/computil.c3
1 files changed, 2 insertions, 1 deletions
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