zsh-workers
 help / color / mirror / code / Atom feed
* [andyetitmoves@gmail.com: Bug#405578: zsh: Glob fix to parse playlist output from newer mpc]
@ 2007-01-04 18:04 Clint Adams
  0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2007-01-04 18:04 UTC (permalink / raw)
  To: zsh-workers

----- Forwarded message from "R.Ramkumar" <andyetitmoves@gmail.com> -----

Hi!

The playlist output for mpc was recently slightly modified. This
upset the completion code. Here is a small patch to allow for the
change (This works for older versions as well, I just needed to
relax the glob pattern).


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


Content-Description: Glob fix to parse playlist output from newer mpc
--- _mpc.orig	2007-01-04 22:49:22.909590520 +0530
+++ _mpc	2007-01-04 22:41:11.953227232 +0530
@@ -95,7 +95,7 @@
   out=("${(@f)$(_call_program song-numbers mpc $foo playlist 2>/dev/null)}")
   out=("${(@M)out[@]:#${~MATCH}}")
 
-  sn=("${(@)${(@M)out}//(#b)(#s)\#([0-9]#)*/$match[1]}")
+  sn=("${(@)${(@M)out}//(#b)(#s)(\#|[ >]#)([0-9]#)*/$match[2]}")
   list=("${(@Mr:COLUMNS-1:)out}")
 
   _wanted -V 'song numbers' expl 'song number' \


Regards,
Ramkumar.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-01-04 18:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-04 18:04 [andyetitmoves@gmail.com: Bug#405578: zsh: Glob fix to parse playlist output from newer mpc] 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).