about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-11 11:21:12 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-11 11:21:12 +0000
commit71157907ad90e252f2bb4842832f5d353f7f50c2 (patch)
tree931b9bc9771ca6aa1384c86d78f92de71f4ca624 /Completion
parent0c918c63ca81f3c63cdefde4b7f6ff5a6a0e2dfd (diff)
downloadzsh-71157907ad90e252f2bb4842832f5d353f7f50c2.tar.gz
zsh-71157907ad90e252f2bb4842832f5d353f7f50c2.tar.xz
zsh-71157907ad90e252f2bb4842832f5d353f7f50c2.zip
make trailing blanks in file-patterns tags be removed (10650)
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Core/_files2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Core/_files b/Completion/Core/_files
index a64e5c093..fad833d76 100644
--- a/Completion/Core/_files
+++ b/Completion/Core/_files
@@ -47,7 +47,7 @@ fi
 for def in "$pats[@]"; do
   def="${def##[[:blank:]]#}"
   while [[ "$def" = *[^\\][[:blank:]]* ]]; do
-    sdef="${(M)def#*[^\\][[:blank:]]}"
+    sdef="${${(M)def#*[^\\][[:blank:]]}%%[[:blank:]]#}"
     tag="${${sdef#*[^\\]:}%%:*}"
     pat="${${${sdef%%:${tag}*}//\\\\:/:}//,/ }"