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 | |
parent | 9d17392c1444120e3860ec43019a478c81e702a7 (diff) | |
download | zsh-cfd6be99eeb9083862d28b4138c5c25e133ca232.tar.gz zsh-cfd6be99eeb9083862d28b4138c5c25e133ca232.tar.xz zsh-cfd6be99eeb9083862d28b4138c5c25e133ca232.zip |
26939: clean up xmms2 jump completion.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Completion/Unix/Command/_xmms2 | 9 |
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 |