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

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

[nongnu] elpa/git-commit ae03ca91d7 1/2: Revert "magit-make-margin-overl


From: ELPA Syncer
Subject: [nongnu] elpa/git-commit ae03ca91d7 1/2: Revert "magit-make-margin-overlay: Remove old kludge"
Date: Thu, 31 Mar 2022 16:58:10 -0400 (EDT)

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

    Revert "magit-make-margin-overlay: Remove old kludge"
    
    This reverts commit 6f5f72bc9887af326e8dbdca67c00fd5713fe797.
    
    Turns out this is necessary after all.  Without this the margin
    for the empty line at the end of a log section (for example) is
    not highlighted when the section is current.
---
 lisp/magit-margin.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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