aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--emms-playlist-mode.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/emms-playlist-mode.el b/emms-playlist-mode.el
index 4d34f44..0978bea 100644
--- a/emms-playlist-mode.el
+++ b/emms-playlist-mode.el
@@ -153,9 +153,10 @@ FUN should be a function."
(defun emms-playlist-mode-center-current ()
"Move point to the currently selected track."
(interactive)
- (goto-char (if emms-playlist-mode-selected-overlay
- (overlay-start emms-playlist-mode-selected-overlay)
- (point-min))))
+ (with-current-emms-playlist
+ (goto-char (if emms-playlist-mode-selected-overlay
+ (overlay-start emms-playlist-mode-selected-overlay)
+ (point-min)))))
(defun emms-playlist-mode-play-current-track ()
"Start playing track at point."