about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEarnestly <zibeon@gmail.com>2017-01-13 20:56:47 -0500
committerEric Cook <illua@users.sourceforge.net>2017-01-13 20:56:47 -0500
commit51c5c85c23553487785cc0622f6137a3f520ddaf (patch)
tree43246ada06eca590c8c11b64108210cd6e9dade5
parentf22960c8e1e0d5d1f34023aa64e1f602ae345945 (diff)
downloadzsh-51c5c85c23553487785cc0622f6137a3f520ddaf.tar.gz
zsh-51c5c85c23553487785cc0622f6137a3f520ddaf.tar.xz
zsh-51c5c85c23553487785cc0622f6137a3f520ddaf.zip
40355: _mpc: improve playlist completion
-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 18c356ee2..37b1a0b1e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-01-13  Eric Cook  <llua@gmx.com>
+
+	* earnestly: 40355: Completion/Unix/Command/_mpc: improve
+	playlist completion
+
 2017-01-13  Oliver Kiddle  <opk@zsh.org>
 
 	* 40345: Completion/Linux/Command/_lsusb: update lsusb completion
diff --git a/Completion/Unix/Command/_mpc b/Completion/Unix/Command/_mpc
index 11eab8463..e0c6888b0 100644
--- a/Completion/Unix/Command/_mpc
+++ b/Completion/Unix/Command/_mpc
@@ -131,7 +131,7 @@ _mpc_helper_songnumbers() {
 (( $+functions[_mpc_helper_playlists] )) ||
 _mpc_helper_playlists() {
   local list expl
-  list=($(mpc lsplaylists))
+  list=(${(f)"$(mpc lsplaylists)"})
   _wanted list expl playlist compadd -M $MPC_PLAYLIST_MATCHER $expl -a list
 }