about summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
authordana <dana@dana.is>2018-06-11 12:22:42 -0500
committerdana <dana@dana.is>2018-06-11 12:22:42 -0500
commit6b4e78dce6a505d8dab5554d9925e38e13bb40ea (patch)
tree6a41b01a8da1f199fda61a3c915f686c5755de95 /Completion/Unix
parent63e09b338bb634cd54bb8a2129b12ba21bd04c91 (diff)
downloadzsh-6b4e78dce6a505d8dab5554d9925e38e13bb40ea.tar.gz
zsh-6b4e78dce6a505d8dab5554d9925e38e13bb40ea.tar.xz
zsh-6b4e78dce6a505d8dab5554d9925e38e13bb40ea.zip
42984: Fix argument pass-through to compadd
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Type/_files2
-rw-r--r--Completion/Unix/Type/_object_files2
2 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Unix/Type/_files b/Completion/Unix/Type/_files
index 2b0c5580a..5df22ea46 100644
--- a/Completion/Unix/Type/_files
+++ b/Completion/Unix/Type/_files
@@ -121,7 +121,7 @@ for def in "$pats[@]"; do
 	    done
 	  fi
         else
-          _path_files "$expl[@]" -g "$pat" "$opts[@]" && ret=0
+          _path_files -g "$pat" "$opts[@]" "$expl[@]" && ret=0
         fi
       done
       (( ret )) || break
diff --git a/Completion/Unix/Type/_object_files b/Completion/Unix/Type/_object_files
index 595265116..6b931372f 100644
--- a/Completion/Unix/Type/_object_files
+++ b/Completion/Unix/Type/_object_files
@@ -9,4 +9,4 @@ __object_file() {
 	$REPLY = (core*|*.core) ]]
 }
 
-_files -g '*(-.e,__object_file,)'
+_files -g '*(-.e,__object_file,)' "$@" "${(@)expl}"