Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug#535851: zsh: completion does not work anymore with some specific applications



On Wed, Aug 05, 2009 at 12:24:59AM +0000, Clint Adams wrote:
> I hope this does the right thing.

It does not.

Index: Completion/Unix/Type/_path_files
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Type/_path_files,v
retrieving revision 1.46
diff -u -r1.46 _path_files
--- Completion/Unix/Type/_path_files	5 Aug 2009 00:28:34 -0000	1.46
+++ Completion/Unix/Type/_path_files	5 Aug 2009 00:44:46 -0000
@@ -160,7 +160,7 @@
       if _have_glob_qual "$tmp1" complete; then
 	# unbalanced parenthesis is correct: match[1] contains the start,
 	# match[5] doesn't contain the end.
-	tmp2+=( "${match[1]}${match[5]})(${sort})" )
+	tmp2+=( "${match[1]}#q${sort})(${match[5]})" )
       else
         tmp2+=( "${tmp1}(${sort})" )
       fi



Messages sorted by: Reverse Date, Date, Thread, Author