Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH] fix _mpc completion for directories with spaces



---
 Completion/Unix/Command/_mpc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Completion/Unix/Command/_mpc b/Completion/Unix/Command/_mpc
index 1ff9ad9..fa8fce1 100644
--- a/Completion/Unix/Command/_mpc
+++ b/Completion/Unix/Command/_mpc
@@ -163,7 +163,7 @@ _mpc_helper_directories() {
     list=( ${${(M)${(f)"$(mpc listall)"}:#*/*}%%/*})
     _wanted directories expl directory compadd -qS/ -a list
   else
-    list=(${(f)"$(mpc lstab $words[CURRENT])"})
+    list=(${(f)"$(eval mpc lstab $words[CURRENT])"})
     _wanted directories expl directory _multi_parts / list
   fi
 }
-- 
1.7.6.1



Messages sorted by: Reverse Date, Date, Thread, Author