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 Tue, Aug 04, 2009 at 04:54:38PM +0200, Sylvain Chevillard wrote:
> The line that causes trouble is the following:
>
> zstyle ':completion:*' file-sort access

So that's failing because it's generating patterns like

*.(#i)pdf(oa#q-.)

I hope this does the right thing.

Index: Completion/Unix/Type/_path_files
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Type/_path_files,v
retrieving revision 1.45
diff -u -r1.45 _path_files
--- Completion/Unix/Type/_path_files	13 Mar 2009 09:59:58 -0000	1.45
+++ Completion/Unix/Type/_path_files	5 Aug 2009 00:23:32 -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]}${sort}${match[5]})" )
+	tmp2+=( "${match[1]}${match[5]})(${sort})" )
       else
         tmp2+=( "${tmp1}(${sort})" )
       fi



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