summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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