diff options
author | Clint Adams <clint@users.sourceforge.net> | 2009-05-22 02:03:19 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2009-05-22 02:03:19 +0000 |
commit | cfd6be99eeb9083862d28b4138c5c25e133ca232 (patch) | |
tree | 30aa69ff12548855487d6e40c0d8781ce9aaefc7 /Completion | |
parent | 9d17392c1444120e3860ec43019a478c81e702a7 (diff) | |
download | zsh-cfd6be99eeb9083862d28b4138c5c25e133ca232.tar.gz zsh-cfd6be99eeb9083862d28b4138c5c25e133ca232.tar.xz zsh-cfd6be99eeb9083862d28b4138c5c25e133ca232.zip |
26939: clean up xmms2 jump completion.
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Unix/Command/_xmms2 | 9 |
1 files changed, 3 insertions, 6 deletions
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 |