about summary refs log tree commit diff
path: root/Src/Zle
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-11 11:27:39 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-11 11:27:39 +0000
commit567e221218ed1e882a42235b100b1e023b52e1b7 (patch)
treed07bd95855adec14b8f5c15ad84b0f60fdfb20cc /Src/Zle
parent51511cd7c8e94085033641a8ffe5081f25d024d4 (diff)
downloadzsh-567e221218ed1e882a42235b100b1e023b52e1b7.tar.gz
zsh-567e221218ed1e882a42235b100b1e023b52e1b7.tar.xz
zsh-567e221218ed1e882a42235b100b1e023b52e1b7.zip
make _argument_sets add the options as defaults when there is nothing else to complete (11324)
Diffstat (limited to 'Src/Zle')
-rw-r--r--Src/Zle/computil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c
index c47914db7..483823798 100644
--- a/Src/Zle/computil.c
+++ b/Src/Zle/computil.c
@@ -1339,7 +1339,7 @@ ca_parse_line(Cadef d, int multi)
 		state.nargbeg = cur - 1;
 		state.argend = argend;
 	    }
-	    if (!d->args && !d->rest && *line != '-' && *line != '+')
+	    if (!d->args && !d->rest && *line && *line != '-' && *line != '+')
 		return 1;
 	    if ((adef = state.def = ca_get_arg(d, state.nth)) &&
 		(state.def->type == CAA_RREST ||