summaryrefslogtreecommitdiff
path: root/Completion
diff options
context:
space:
mode:
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Type/_path_files9
1 files changed, 8 insertions, 1 deletions
diff --git a/Completion/Unix/Type/_path_files b/Completion/Unix/Type/_path_files
index ed3f54de3..c64ebf58c 100644
--- a/Completion/Unix/Type/_path_files
+++ b/Completion/Unix/Type/_path_files
@@ -609,8 +609,15 @@ for prepath in "$prepaths[@]"; do
tmp3="$pre$suf"
tpre="$pre"
tsuf="$suf"
- [[ -n "${prepath}${realpath}${testpath}" ]] &&
+ if [[ -n "${prepath}${realpath}${testpath}" ]]
+ then
+ if [[ -o nocaseglob ]]
+ then
+ tmp1=( "${(@)tmp1#(#i)${prepath}${realpath}${testpath}}" )
+ else
tmp1=( "${(@)tmp1#${prepath}${realpath}${testpath}}" )
+ fi
+ fi
while true; do