summaryrefslogtreecommitdiff
path: root/src/queue
diff options
context:
space:
mode:
Diffstat (limited to 'src/queue')
-rw-r--r--src/queue/PlaylistEdit.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/queue/PlaylistEdit.cxx b/src/queue/PlaylistEdit.cxx
index d6ab55d15..d53286a25 100644
--- a/src/queue/PlaylistEdit.cxx
+++ b/src/queue/PlaylistEdit.cxx
@@ -352,7 +352,7 @@ playlist::MoveRange(PlayerControl &pc,
return;
to = (currentSong + abs(to)) % GetLength();
if (start < (unsigned)to)
- to--;
+ to -= end - start;
}
queue.MoveRange(start, end, to);