branch: externals/mpdired commit 38b0d18e24a79590b487953509d3bb5901d94b34 Author: Manuel Giraud <man...@ledu-giraud.fr> Commit: Manuel Giraud <man...@ledu-giraud.fr>
fix bug with empty queue --- mpdired.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mpdired.el b/mpdired.el index 0d9cba3245..e204911d9a 100644 --- a/mpdired.el +++ b/mpdired.el @@ -240,7 +240,13 @@ (when (re-search-forward "^Id: \\(.*\\)$" eol t 1) (setq id (string-to-number (match-string 1))))) (forward-line)) - ;; The last one + ;; There was status but no songs + (when in-status-p + (push (list state volume repeat random single consume) result) + (push songid result) + (push elapsed result) + (push duration result)) + ;; The last song if any (when file (push (list id file time) result)) (reverse result)))