summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_mpc
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2014-08-11 17:39:42 +0200
committerAxel Beckert <abe@deuxchevaux.org>2014-08-11 17:39:42 +0200
commit382c26acfc62a56744ab9eb603efc56130764fd3 (patch)
tree1b7cb9d3e372481007fc4546e7d06ce5bb1bc104 /Completion/Unix/Command/_mpc
parent73508e345b4925f33b7f652aba9bd313169e5ac2 (diff)
parentf8ae47f29b766dc0330b19d7fdb35859d6aab930 (diff)
downloadzsh-382c26acfc62a56744ab9eb603efc56130764fd3.tar.gz
zsh-382c26acfc62a56744ab9eb603efc56130764fd3.zip
New upstream release candidate: Merge branch 'upstream' into debian
Diffstat (limited to 'Completion/Unix/Command/_mpc')
-rw-r--r--Completion/Unix/Command/_mpc5
1 files changed, 3 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_mpc b/Completion/Unix/Command/_mpc
index 1ff9ad950..12707677f 100644
--- a/Completion/Unix/Command/_mpc
+++ b/Completion/Unix/Command/_mpc
@@ -25,7 +25,7 @@ _mpc_command() {
local mpc_cmds
mpc_cmds=(
- add:"add a song to the current playlist"
+ add:"append a song to the end of the current playlist"
clear:"clear the current playlist"
crop:"remove all songs except for the currently playing song"
current:"show the currently playing song"
@@ -35,6 +35,7 @@ _mpc_command() {
enable:"enable a output"
idle:"wait until an event occurs"
idleloop:"loop waiting for events"
+ insert:"insert a song after the currently playing song in the playlist"
listall:"list all songs in the music directory"
load:"load file as a playlist"
ls:"list the contents of specified directory"
@@ -253,7 +254,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"