emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/mpdired 3b01af9d4d 2/3: fix progress


From: ELPA Syncer
Subject: [elpa] externals/mpdired 3b01af9d4d 2/3: fix progress
Date: Mon, 11 Mar 2024 06:58:42 -0400 (EDT)

branch: externals/mpdired
commit 3b01af9d4d129e37881953532dbb867c9bdb264b
Author: Manuel Giraud <manuel@ledu-giraud.fr>
Commit: Manuel Giraud <manuel@ledu-giraud.fr>

    fix progress
---
 mpdired.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/mpdired.el b/mpdired.el
index cd909349b2..3a4dd5f986 100644
--- a/mpdired.el
+++ b/mpdired.el
@@ -513,7 +513,8 @@ used for mark followed by a space."
            (let* ((bol (mpdired--bol))
                   (eol (line-end-position))
                   (x (/ (* elapsed (- eol bol)) duration)))
-             (put-text-property (+ bol x) eol 'face 'mpdired-progress))))
+             (when (> eol (+ bol x))
+               (put-text-property (+ bol x) eol 'face 'mpdired-progress)))))
        ;; Go to bol no matter what
        (goto-char (mpdired--bol))
        ;; Restore point and memorize stuff



reply via email to

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