Created
August 25, 2011 23:53
-
-
Save death/1172340 to your computer and use it in GitHub Desktop.
mingus-goto-current-song patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 3c6d41708a3bf34bb6350cab017f935701ac38ef Mon Sep 17 00:00:00 2001 | |
From: death <death@nessers.org> | |
Date: Fri, 26 Aug 2011 02:49:36 +0300 | |
Subject: [PATCH] correctly handle nil song-number when moving point to current song | |
--- | |
mingus.el | 2 +- | |
1 files changed, 1 insertions(+), 1 deletions(-) | |
diff --git a/mingus.el b/mingus.el | |
index 0a5acd7..3336caa 100644 | |
--- a/mingus.el | |
+++ b/mingus.el | |
@@ -2657,7 +2657,7 @@ Switch to *Mingus* buffer if necessary." | |
(defun mingus-goto-current-song () | |
"In Mingus, move point to currently playing song." | |
(interactive) | |
- (mingus-goto-line (or (1+ (mingus-cur-song-number)) 1))) | |
+ (mingus-goto-line (1+ (or (mingus-cur-song-number) 0)))) | |
(defun mingus-playlist-length () | |
"Return length of current mpd playlist." | |
-- | |
1.7.6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment