about summary refs log tree commit diff
path: root/Completion/Base
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Base')
-rw-r--r--Completion/Base/_arguments2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Base/_arguments b/Completion/Base/_arguments
index 77fbf534c..b1e790e1c 100644
--- a/Completion/Base/_arguments
+++ b/Completion/Base/_arguments
@@ -17,7 +17,7 @@ if (( long )); then
   fi
 
   name=${~words[1]}
-  [[ "$name" != /* ]] && tmp="$PWD/$name"
+  [[ "$name" = [^/]*/* ]] && name="$PWD/$name"
 
   name="_args_cache_${name}"
   name="${name//[^a-zA-Z0-9_]/_}"