about summary refs log tree commit diff
diff options
context:
space:
mode:
authorKoen Wilde <koen@chillheid.nl>2014-01-10 21:53:57 +0100
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2014-01-10 22:26:30 +0000
commit8fd6d5766c74da73f9a68c97589c58b5292cab24 (patch)
tree1db2c6998c2c06711e7bd532eb97cce864ce307a
parentd26461a3c61b311bdbd58334ee5f8a5113dcdbf2 (diff)
downloadzsh-8fd6d5766c74da73f9a68c97589c58b5292cab24.tar.gz
zsh-8fd6d5766c74da73f9a68c97589c58b5292cab24.tar.xz
zsh-8fd6d5766c74da73f9a68c97589c58b5292cab24.zip
32245: complete more mpc arguments
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_mpc2
-rw-r--r--Test/B08shift.ztst0
3 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 954c63b44..c8e169879 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-01-10  Peter Stephenson  <p.w.stephenson@ntlworld.com>
+
+	* Koen Wilde: 32245: Completion/Unix/Command/_mpc: complete more
+	arguments.
+
 2014-01-09  Peter Stephenson  <p.stephenson@samsung.com>
 
 	* users/18298 (tidied up): Doc/Zsh/expn.yo, Src/glob.c,
diff --git a/Completion/Unix/Command/_mpc b/Completion/Unix/Command/_mpc
index 1ff9ad950..e72feef47 100644
--- a/Completion/Unix/Command/_mpc
+++ b/Completion/Unix/Command/_mpc
@@ -253,7 +253,7 @@ _mpc_search() {
   local list expl
   list=(album artist title track name genre date composer performer comment disc filename any)
 
-  if [[ $#words -eq 2 ]]; then
+  if ! (( $#words % 2 )); then
     _wanted list expl table compadd $expl -a list
   else
     _message "pattern"
diff --git a/Test/B08shift.ztst b/Test/B08shift.ztst
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/Test/B08shift.ztst