summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_module
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2015-05-05 23:32:59 +0200
committerAxel Beckert <abe@deuxchevaux.org>2015-05-05 23:58:59 +0200
commitdb38e167634b6c2217eec3a5aafc37c46d9e5a8d (patch)
treedaa342d423febbd3a5a7ef97053037677fab004a /Completion/Unix/Command/_module
parent01eea47617a6e06debdb4330f92ae69f92089fd2 (diff)
parent3c3c8d3d13fd4cf6c03f81ca8dc18a1efd561728 (diff)
downloadzsh-db38e167634b6c2217eec3a5aafc37c46d9e5a8d.tar.gz
zsh-db38e167634b6c2217eec3a5aafc37c46d9e5a8d.zip
Merge branch 'upstream' into debian
Diffstat (limited to 'Completion/Unix/Command/_module')
-rw-r--r--Completion/Unix/Command/_module8
1 files changed, 4 insertions, 4 deletions
diff --git a/Completion/Unix/Command/_module b/Completion/Unix/Command/_module
index c1c9f5c08..060f05b86 100644
--- a/Completion/Unix/Command/_module
+++ b/Completion/Unix/Command/_module
@@ -52,9 +52,9 @@ _module()
)
if (( CURRENT == 1 )); then
- _describe -t commands 'module command' _module_cmds || compadd "$@"
+ _describe -t commands 'module command' _module_cmds
else
- local curcontext="$curcontext"
+ local curcontext="$curcontext" ret
cmd="${${_module_cmds[(r)$words[1]:*]%%:*}}"
# Deal with any aliases
@@ -65,7 +65,7 @@ _module()
show) cmd="display";;
keyword) cmd="apropos";;
esac
-
+
if (( $#cmd ));
then
local update_policy
@@ -132,7 +132,7 @@ _module_available_modules()
{
_arguments -s \
'(-a --append)'{--append,-a}'[append the directories instead of prepending]' \
- '*:directory:_files -/'
+ '*:directory:_files -/'
}
# Completion function for unuse