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

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

[nongnu] elpa/git-commit 6f5f72bc98 2/3: magit-make-margin-overlay: Remo


From: ELPA Syncer
Subject: [nongnu] elpa/git-commit 6f5f72bc98 2/3: magit-make-margin-overlay: Remove old kludge
Date: Tue, 29 Mar 2022 08:58:13 -0400 (EDT)

branch: elpa/git-commit
commit 6f5f72bc9887af326e8dbdca67c00fd5713fe797
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    magit-make-margin-overlay: Remove old kludge
    
    This doesn't appear to be necessary anymore.
    Tested with Emacs 25.1 and 29.0.50.
    
    Re #1880.
---
 lisp/magit-margin.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lisp/magit-margin.el b/lisp/magit-margin.el
index ae0c310880..415870c2e6 100644
--- a/lisp/magit-margin.el
+++ b/lisp/magit-margin.el
@@ -156,8 +156,7 @@ does not carry to other options."
       (save-excursion
         (forward-line -1)
         (magit-make-margin-overlay string))
-    ;; Don't put the overlay on the complete line to work around #1880.
-    (let ((o (make-overlay (1+ (line-beginning-position))
+    (let ((o (make-overlay (line-beginning-position)
                            (line-end-position)
                            nil t)))
       (overlay-put o 'evaporate t)



reply via email to

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