about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_xmms29
2 files changed, 7 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 96597a61c..f1c73bf5d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2009-05-22  Clint Adams  <clint@zsh.org>
 
+	* 26939: Completion/Unix/Command/_xmms2: clean up xmms2 jump
+	completion.
+
 	* Patrick Schoenfeld: 26977: Completion/Unix/Command/_perl:
 	complete .t files for perl.
 
@@ -11745,5 +11748,5 @@
 
 *****************************************************
 * This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.4693 $
+* $Revision: 1.4694 $
 *****************************************************
diff --git a/Completion/Unix/Command/_xmms2 b/Completion/Unix/Command/_xmms2
index d25802ed1..95ea04b33 100644
--- a/Completion/Unix/Command/_xmms2
+++ b/Completion/Unix/Command/_xmms2
@@ -55,14 +55,11 @@ _xmms2_command() {
 }
 
  _xmms2_jump() {
-     oldIFS=$IFS
-     IFS=$'\n'
-     songlist=($(xmms2 list))
-     IFS=oldIFS
-     playlistitems=""
+     songlist=(${"$(xmms2 list)"})
+     playlistitems=()
      for song ($songlist); do 
 	 if [[ $song = (#b)'  '\[(<->)/(<->)\]' '(*)' '\((*)\) ]]; then
-		    playlistitems=($playlistitems "$match[1][$match[3]]")
+		    playlistitems+=("$match[1][$match[3]]")
 	 fi
      done