Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] fix _mpc completion for directories with spaces
- X-seq: zsh-workers 29779
- From: Gustav Munkby <grddev@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] fix _mpc completion for directories with spaces
- Date: Thu, 15 Sep 2011 22:56:01 +0200
- Cc: Gustav Munkby <grddev@xxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=gmail.com; s=gamma;        h=from:to:cc:subject:date:message-id:x-mailer;        bh=Y/odPrg2qCt22doeSHLE4QKQActzXyHXqhH08/v0Few=;        b=uHx0u85erSgd/b1qXD5MrhOSFAXMcI3BG9JKfOP3EubVzj9tfE0JReynFh+2Iy5ExD         k+WWfh+gQpgctg5b3un7tRO5wLbc7OqLpn7XRbmJGNeyR/fLqQpYjcG6aANk65784t6h         Mi0idFwgEzm2OEIi8e2glct5Z5dhvaRBhKPmo=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
---
 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