aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist_edit.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-12-24 18:15:17 +0100
committerMax Kellermann <max@duempel.org>2011-12-24 18:15:17 +0100
commit43c5058682e5e365204469b469d6bd0db12b71f9 (patch)
tree196f41bc75f9deaff3398d52ed795fc5bb0765cb /src/playlist_edit.c
parent99949c8f6fad1e2ef6aec5b742c8048d67b8280c (diff)
parent97b4a6b51f146b16eeac9334605f8a6fff1c0af7 (diff)
downloadmpd-43c5058682e5e365204469b469d6bd0db12b71f9.tar.gz
mpd-43c5058682e5e365204469b469d6bd0db12b71f9.tar.xz
mpd-43c5058682e5e365204469b469d6bd0db12b71f9.zip
Merge branch 'v0.16.x'
Diffstat (limited to 'src/playlist_edit.c')
-rw-r--r--src/playlist_edit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/playlist_edit.c b/src/playlist_edit.c
index 92c3d44b0..dbd205a06 100644
--- a/src/playlist_edit.c
+++ b/src/playlist_edit.c
@@ -418,7 +418,7 @@ playlist_move_range(struct playlist *playlist, struct player_control *pc,
playlist->current)
: -1;
if (to < 0 && playlist->current >= 0) {
- if (start <= (unsigned)currentSong && (unsigned)currentSong <= end)
+ if (start <= (unsigned)currentSong && (unsigned)currentSong < end)
/* no-op, can't be moved to offset of itself */
return PLAYLIST_RESULT_SUCCESS;
to = (currentSong + abs(to)) % queue_length(&playlist->queue);