From cfebfe68b58383886f4365899a78135136b3506d Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Sun, 15 May 2011 00:06:31 +0000 Subject: 29278: Completion/Unix/Type/_path_files: fix use of the $skips --- Completion/Unix/Type/_path_files | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion/Unix/Type') diff --git a/Completion/Unix/Type/_path_files b/Completion/Unix/Type/_path_files index baa57e5d3..1c272baba 100644 --- a/Completion/Unix/Type/_path_files +++ b/Completion/Unix/Type/_path_files @@ -574,7 +574,7 @@ for prepath in "$prepaths[@]"; do # slash be added. tmp1=( ${tmp1//(#b)([][()|*?^#~<>\\=])/\\${match[1]}} ) - tmp2="${(M)tpre##((.|..|)/)##}" + tmp2="${(M)tpre##${~skips}}" if [[ -n "$tmp2" ]]; then skipped="/$tmp2" tpre="${tpre#$tmp2}" -- cgit 1.4.1