about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-10 08:00:05 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-10 08:00:05 +0000
commitaa4a931544e21719ff9bc33c4f1fcef79eb31210 (patch)
tree5a5a010765c0823529a38de6877e2dae9be005c1
parent78e327861c7c593a704f7a541cb0e858513ee60e (diff)
downloadzsh-aa4a931544e21719ff9bc33c4f1fcef79eb31210.tar.gz
zsh-aa4a931544e21719ff9bc33c4f1fcef79eb31210.tar.xz
zsh-aa4a931544e21719ff9bc33c4f1fcef79eb31210.zip
update `%p' replacement in _files (11292)
-rw-r--r--ChangeLog4
-rw-r--r--Completion/Core/_files2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 54d4cfb0f..d518d1a87 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2000-05-10  Sven Wischnowsky  <wischnow@zsh.org>
+
+	* 11292: Completion/Core/_files: update `%p' replacement in _files
+	
 2000-05-09  Bart Schaefer  <schaefer@brasslantern.com>
 
 	* 11288: Completion/Commands/_complete_help,
diff --git a/Completion/Core/_files b/Completion/Core/_files
index 777d09f44..1ba564bf6 100644
--- a/Completion/Core/_files
+++ b/Completion/Core/_files
@@ -26,7 +26,7 @@ fi
 if zstyle -a ":completion:${curcontext}:" file-patterns tmp; then
   [[ "$type" = */* ]] && glob="$glob,*(-/)"
   pats=()
-  for i in ${tmp//\\%p/${${glob:-\*}//:/\\:} }; do
+  for i in ${tmp//%p/${${glob:-\*}//:/\\:} }; do
     if [[ $i = *[^\\]:* ]]; then
       pats=( "$pats[@]" " $i " )
     else