aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--emms.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/emms.el b/emms.el
index 683e4ae..64881e6 100644
--- a/emms.el
+++ b/emms.el
@@ -793,7 +793,8 @@ See emms-source-file.el for some examples."
"Add the tracks of SOURCE at the current position in the playlist."
(apply 'emms-playlist-insert-source source args)
(with-current-emms-playlist
- (when (not emms-playlist-selected-marker)
+ (when (or (not emms-playlist-selected-marker)
+ (not (marker-position emms-playlist-selected-marker)))
(emms-playlist-select-first))))
;;; User-defined playlists