emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master fcfcb35: * lisp/mpc.el (mpc-format): Fix printing after last form


From: Stefan Kangas
Subject: master fcfcb35: * lisp/mpc.el (mpc-format): Fix printing after last format spec.
Date: Wed, 29 Sep 2021 00:57:53 -0400 (EDT)

branch: master
commit fcfcb35791495ea842d30efc3d87a088ecd57977
Author: Stefan Kangas <stefan@marxist.se>
Commit: Stefan Kangas <stefan@marxist.se>

    * lisp/mpc.el (mpc-format): Fix printing after last format spec.
---
 lisp/mpc.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lisp/mpc.el b/lisp/mpc.el
index 1f4cb4f..494a4b9 100644
--- a/lisp/mpc.el
+++ b/lisp/mpc.el
@@ -1111,6 +1111,9 @@ If PLAYLIST is t or nil or missing, use the main 
playlist."
           (if (null size) (setq col (+ col textwidth postwidth))
             (insert space)
             (setq col (+ col size))))))
+    ;; Print the rest of format-spec, in case there is text after the
+    ;; last actual format specifier.
+    (insert (substring format-spec pos))
     (put-text-property start (point) 'mpc--uptodate-p pred)))
 
 ;;; The actual UI code ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]