about summary refs log tree commit diff
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
parent0c918c63ca81f3c63cdefde4b7f6ff5a6a0e2dfd (diff)
downloadzsh-71157907ad90e252f2bb4842832f5d353f7f50c2.tar.gz
zsh-71157907ad90e252f2bb4842832f5d353f7f50c2.tar.xz
zsh-71157907ad90e252f2bb4842832f5d353f7f50c2.zip
make trailing blanks in file-patterns tags be removed (10650)
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Core/_files2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9b5c6250b..91be07176 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2000-04-11  Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
 
+	* 10650: Completion/Core/_files: make trailing blanks in
+ 	file-patterns tags be removed
+	
 	* 10648: Completion/Core/_oldlist: make _oldlist ignore old list
  	when _complete_help is used
 	
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}*}//\\\\:/:}//,/ }"