zsh-workers
 help / color / mirror / code / Atom feed
* Re: Bug#535851: zsh: completion does not work anymore with some specific applications
       [not found]               ` <20090804165438.1613184r44tad8ry@webmail.ens-lyon.fr>
@ 2009-08-05  0:24                 ` Clint Adams
  2009-08-05  0:45                   ` Clint Adams
  0 siblings, 1 reply; 2+ messages in thread
From: Clint Adams @ 2009-08-05  0:24 UTC (permalink / raw)
  To: Sylvain Chevillard, 535851; +Cc: zsh-workers

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Bug#535851: zsh: completion does not work anymore with some specific applications
  2009-08-05  0:24                 ` Bug#535851: zsh: completion does not work anymore with some specific applications Clint Adams
@ 2009-08-05  0:45                   ` Clint Adams
  0 siblings, 0 replies; 2+ messages in thread
From: Clint Adams @ 2009-08-05  0:45 UTC (permalink / raw)
  To: Sylvain Chevillard, 535851, zsh-workers

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-08-05  0:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20090705150916.2495.13954.reportbug@whisky.lip.ens-lyon.fr>
     [not found] ` <20090705182505.GA23176@scru.org>
     [not found]   ` <4A50FC4E.8050200@ens-lyon.fr>
     [not found]     ` <20090710234211.GA6977@scru.org>
     [not found]       ` <4A608C61.8080602@ens-lyon.fr>
     [not found]         ` <20090718131338.GA13923@scru.org>
     [not found]           ` <4A756598.9040403@ens-lyon.fr>
     [not found]             ` <20090802152642.GA1792@scru.org>
     [not found]               ` <20090804165438.1613184r44tad8ry@webmail.ens-lyon.fr>
2009-08-05  0:24                 ` Bug#535851: zsh: completion does not work anymore with some specific applications Clint Adams
2009-08-05  0:45                   ` Clint Adams

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).