diff options
Diffstat (limited to 'Completion/Base/_long_options')
-rw-r--r-- | Completion/Base/_long_options | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Completion/Base/_long_options b/Completion/Base/_long_options index 461da893c..0080a48b6 100644 --- a/Completion/Base/_long_options +++ b/Completion/Base/_long_options @@ -135,7 +135,7 @@ if [[ "$tmp" != $_lo_cache_cmd ]]; then set -- "$@" '*=FILE*:file:_files' '*=(DIR|PATH)*:directory:_files -/' '*:unknown:' - while [[ $# -gt 1 ]]; do + while [[ $# -gt 0 ]]; do # First, we get the pattern and the action to use and take them # from the positional parameters. @@ -265,6 +265,8 @@ if [[ "$str" = *\=* ]]; then action=($=action) ${(e)action[1]} "$expl[@]" ${(e)~action[2,-1]} fi + else + _message "$descr" fi # We found the option string, return. |