From ae7d1a09857b5baf57757481b659b15e888fac8b Mon Sep 17 00:00:00 2001 From: unK Date: Wed, 27 Aug 2008 16:40:32 +0200 Subject: [PATCH] add conditional including last position on playlist --- src/status_checker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/status_checker.cpp b/src/status_checker.cpp index ddc9cc0e..70327418 100644 --- a/src/status_checker.cpp +++ b/src/status_checker.cpp @@ -327,7 +327,7 @@ void NcmpcppStatusChanged(MPDConnection *Mpd, MPDStatusChanges changed, void *da { if (!mPlaylist->Empty()) { - if (Config.repeat_one_mode && repeat_one_allowed && old_playing+1 == now_playing) + if (Config.repeat_one_mode && repeat_one_allowed && (old_playing+1 == now_playing || old_playing-vPlaylist.size()+1 == now_playing)) { std::swap(now_playing,old_playing); Mpd->Play(now_playing);