about summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Type/_java_class2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Unix/Type/_java_class b/Completion/Unix/Type/_java_class
index 020128823..0e30e550c 100644
--- a/Completion/Unix/Type/_java_class
+++ b/Completion/Unix/Type/_java_class
@@ -15,7 +15,7 @@ classpath="${${classpath[2]:-${CLASSPATH:-.}}//\\:/:}"
 for i in "${(s.:.)classpath}"; do
   [[ -z $i ]] && i=.
   if [[ -f $i ]] && [[ "$i" == *.(jar|zip|war|ear) ]]; then
-    c+=( ${${${(M)$(_call_program jar_classes jar -tf $i)##*.class}%%.class}:gs#/#.#} )
+    c+=( ${${${(M)$(_call_program jar_classes jar -tf $i 2>/dev/null)##*.class}%%.class}:gs#/#.#} )
   elif [[ -d $i ]]; then
     c+=( $i/**/*.class(.:r:s/.class//:s#$i/##:gs#/#.#) )
   fi