about summary refs log tree commit diff
path: root/Completion/Darwin
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Darwin')
-rw-r--r--Completion/Darwin/Type/_mac_files_for_application2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Darwin/Type/_mac_files_for_application b/Completion/Darwin/Type/_mac_files_for_application
index cd4c7860b..299d8ff5c 100644
--- a/Completion/Darwin/Type/_mac_files_for_application
+++ b/Completion/Darwin/Type/_mac_files_for_application
@@ -66,7 +66,7 @@ _mac_files_for_application() {
 
   case ${#glob_patterns} in
     0) return 1 ;;
-    1) _files "$opts[@]" -g "$glob_patterns[0]" ;;
+    1) _files "$opts[@]" -g "$glob_patterns[1]" ;;
     *) _files "$opts[@]" -g "{${(j/,/)glob_patterns}}" ;;
   esac
 }