diff options
author | Max Kellermann <max@duempel.org> | 2009-01-10 17:05:03 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-10 17:05:03 +0100 |
commit | b7c4b78846cf2eba35517a1a0c435a3a056636f5 (patch) | |
tree | 1d417f421229bf5739bba394b44c45291e7eb75c /src/command.c | |
parent | 6f0781f0396ab5e4bc8aece6986381dac8f03081 (diff) | |
download | mpd-b7c4b78846cf2eba35517a1a0c435a3a056636f5.tar.gz mpd-b7c4b78846cf2eba35517a1a0c435a3a056636f5.tar.xz mpd-b7c4b78846cf2eba35517a1a0c435a3a056636f5.zip |
playlist: exclude end of range
In a range "start:end", "end" itself should not be included. Use the
same semantics as other languages implementing ranges, e.g. Python.
Diffstat (limited to '')
-rw-r--r-- | src/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c index 076bc2055..a00607fce 100644 --- a/src/command.c +++ b/src/command.c @@ -390,7 +390,7 @@ handle_currentsong(struct client *client, if (song < 0) return COMMAND_RETURN_OK; - result = playlistInfo(client, song, song); + result = playlistInfo(client, song, song + 1); return print_playlist_result(client, result); } |