about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_mpc2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index cf744ba67..d4a245cd2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-01-04  Clint Adams  <clint@zsh.org>
+
+	* 23089: R.Ramkumar: Completion/Unix/Command/_mpc:
+	relax playlist glob pattern to work with newer versions.
+
 2007-01-04  Peter Stephenson  <pws@csr.com>
 
 	* 23088: Src/builtin.c, Src/zsh.h: Stephane says printf
diff --git a/Completion/Unix/Command/_mpc b/Completion/Unix/Command/_mpc
index f468f3b64..152996458 100644
--- a/Completion/Unix/Command/_mpc
+++ b/Completion/Unix/Command/_mpc
@@ -95,7 +95,7 @@ _mpc_helper_songnumbers() {
   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' \