diff options
author | Yannick LM <yannicklm1337@gmail.com> | 2008-09-21 13:50:26 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-21 13:50:26 +0200 |
commit | 7f0340e99ab01219199af30b7393ca0d61ad1213 (patch) | |
tree | 59d4ab43fd378496bf75f5b5195a7662104de4e9 /src/screen.c | |
parent | 36acd5f8c2988c2b73fee670b2d37cb38f5c518b (diff) | |
download | mpd-7f0340e99ab01219199af30b7393ca0d61ad1213.tar.gz mpd-7f0340e99ab01219199af30b7393ca0d61ad1213.tar.xz mpd-7f0340e99ab01219199af30b7393ca0d61ad1213.zip |
Adding crop feature in ncmpc
The "crop" command deletes all songs from the playlist, except the one
currently being played.
Diffstat (limited to '')
-rw-r--r-- | src/screen.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/screen.c b/src/screen.c index e510b1682..2a5d6416f 100644 --- a/src/screen.c +++ b/src/screen.c @@ -814,6 +814,9 @@ screen_client_cmd(mpdclient_t *c, command_t cmd) case CMD_STOP: mpdclient_cmd_stop(c); break; + case CMD_CROP: + mpdclient_cmd_crop(c); + break; case CMD_SEEK_FORWARD: if (!IS_STOPPED(c->status->state)) { if (c->song && seek_id != c->song->id) { |