about summary refs log tree commit diff
path: root/Completion/Unix/Command/_module
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2014-10-14 23:03:40 +0200
committerOliver Kiddle <opk@zsh.org>2014-10-14 23:04:45 +0200
commit13fc579343b24d298fb8905933b6000d7fcda114 (patch)
treecbc1000696357438714107635f93166bcab76d3a /Completion/Unix/Command/_module
parent66320ca93a717467a0ed0d34da4c06257953aa50 (diff)
downloadzsh-13fc579343b24d298fb8905933b6000d7fcda114.tar.gz
zsh-13fc579343b24d298fb8905933b6000d7fcda114.tar.xz
zsh-13fc579343b24d298fb8905933b6000d7fcda114.zip
33467: correct return status on functions and numerous other minor fixes
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