From 47c0bd0db1e9f9788f3ddb225b9ae2a17775e4c6 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Tue, 30 May 2000 07:49:00 +0000 Subject: fixes for _arguments without multiple sets; change completion test for empty actions (11647) --- Src/Zle/computil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Src') 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])))); -- cgit 1.4.1