summaryrefslogtreecommitdiff
path: root/Src/Zle/computil.c
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-30 07:49:00 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-30 07:49:00 +0000
commit47c0bd0db1e9f9788f3ddb225b9ae2a17775e4c6 (patch)
tree64bdfe68ea2846a1e07d6e2e92662de8685033c1 /Src/Zle/computil.c
parent61a2d24f54e177d952fb2a8f7a6e446f5cdd13cb (diff)
downloadzsh-47c0bd0db1e9f9788f3ddb225b9ae2a17775e4c6.tar.gz
zsh-47c0bd0db1e9f9788f3ddb225b9ae2a17775e4c6.zip
fixes for _arguments without multiple sets; change completion test for empty actions (11647)
Diffstat (limited to 'Src/Zle/computil.c')
-rw-r--r--Src/Zle/computil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c
index d8b4f0cb6..1a98528df 100644
--- a/Src/Zle/computil.c
+++ b/Src/Zle/computil.c
@@ -1437,7 +1437,7 @@ ca_parse_line(Cadef d, int multi, int first)
state.def->type == CAA_RARGS)) {
state.inrest = 0;
state.opt = (cur == state.nargbeg + 1 &&
- (!*line ||
+ (!multi || !*line ||
((*line == '-' || *line == '+') &&
(!line[1] ||
(*line == '-' && line[1] == '-' && !line[2])))));
@@ -1516,7 +1516,7 @@ ca_parse_line(Cadef d, int multi, int first)
}
} else {
ca_laststate.def = adef;
- ca_laststate.opt = (!arglast || !*line ||
+ ca_laststate.opt = (!arglast || !multi || !*line ||
((*line == '-' || *line == '+') &&
(!line[1] ||
(*line == '-' && line[1] == '-' && !line[2]))));