summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Giraud <manuel@ledu-giraud.fr>2025-05-02 13:47:12 +0200
committerManuel Giraud <manuel@ledu-giraud.fr>2025-05-02 13:47:12 +0200
commitb94fd3df8d4ca636b978db580518c68929e1f8ee (patch)
tree55e838b22c8c8ad572bbb4711c473478dc436f6a
parent5cd356794465786568e186af17b1e2d39bc1e6d8 (diff)
save point when jumping to current songexternals/mpdired
-rw-r--r--mpdired.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/mpdired.el b/mpdired.el
index 5e9e0d7..fc37122 100644
--- a/mpdired.el
+++ b/mpdired.el
@@ -914,7 +914,8 @@ SEPARATOR string."
(interactive)
(when mpdired--song
(goto-char (point-min))
- (mpdired--goto-id (car mpdired--song))))
+ (mpdired--goto-id (car mpdired--song))
+ (mpdired--save-point)))
(defun mpdired-toggle-view ()
"Toggles between the browser and the queue view."