about summary refs log tree commit diff
diff options
context:
space:
mode:
-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}*}//\\\\:/:}//,/ }"