summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_mpc2
1 files changed, 1 insertions, 1 deletions
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"