about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
Diffstat (limited to 'Completion')
-rw-r--r--Completion/User/_make2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/User/_make b/Completion/User/_make
index 95152635a..80164fdbd 100644
--- a/Completion/User/_make
+++ b/Completion/User/_make
@@ -32,7 +32,7 @@ else
   fi
 
   if [[ -n "$file" ]] && _tags targets; then
-    if [[ -n "$_is_gnu[$1]" ]]; then
+    if [[ -n "$_is_gnu[$words[1]]" ]]; then
       tmp=( $(make -nsp --no-print-directory -f "$file" .PHONY | awk '/^[a-zA-Z0-9][^\/\t=]+:/ {print $1}' FS=:) )
     else
       tmp=(