diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-05-11 11:27:39 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-05-11 11:27:39 +0000 |
commit | 567e221218ed1e882a42235b100b1e023b52e1b7 (patch) | |
tree | d07bd95855adec14b8f5c15ad84b0f60fdfb20cc /Src/Zle | |
parent | 51511cd7c8e94085033641a8ffe5081f25d024d4 (diff) | |
download | zsh-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.c | 2 |
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 || |