about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Completion/Core/_path_files4
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files
index 9f197f324..d5feaa540 100644
--- a/Completion/Core/_path_files
+++ b/Completion/Core/_path_files
@@ -417,9 +417,9 @@ for prepath in "$prepaths[@]"; do
     # Next we see if this component is ambiguous.
 
     if [[ "$tmp3" = */* ]]; then
-       tmp4=$tmp1[(I)^${tmp1[1]%%/*}/*]
+       tmp4=$tmp1[(I)^${(q)tmp1[1]%%/*}/*]
     else
-       tmp4=$tmp1[(I)^${tmp1[1]}]
+       tmp4=$tmp1[(I)^${(q)tmp1[1]}]
     fi
 
     if [[ "$tpre" = */* ]]; then