summaryrefslogtreecommitdiff
path: root/src/queue
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-10-16 12:03:12 +0200
committerMax Kellermann <max@musicpd.org>2019-10-16 12:03:12 +0200
commite1867a99e99de1ee6997eaf9068179207eb1bef3 (patch)
tree8f5dcc922941d5ee82939ac11997cf498efe2ae6 /src/queue
parentb2c4a5db149ebedd0f130ce02156d86b565eb4b8 (diff)
parent9b95e65bd9ba9d49e1d29f42c64abede7a9b2a92 (diff)
Merge tag 'v0.21.16'
release v0.21.16
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);