]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix visual fringe glitch in diff-mode
authorGregory Heytings <ghe@sdf.org>
Fri, 14 Aug 2020 15:32:23 +0000 (17:32 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 14 Aug 2020 15:34:07 +0000 (17:34 +0200)
* lisp/vc/diff-mode.el (diff--font-lock-prettify): Fix problems
with visual gaps in the fringes when changing font size (bug#42300).

Copyright-paperwork-exempt: yes

lisp/vc/diff-mode.el

index d194d6c0a0e846eb9fb47926cc5855705a95ebcb..bd5ac9b9a62eb0da68143ef69089276757e6a8fe 100644 (file)
@@ -2518,7 +2518,7 @@ fixed, visit it in a buffer."
                                '((?+ . (left-fringe diff-fringe-add diff-indicator-added))
                                  (?- . (left-fringe diff-fringe-del diff-indicator-removed))
                                  (?! . (left-fringe diff-fringe-rep diff-indicator-changed))
-                                 (?\s . (left-fringe diff-fringe-nul))))))
+                                 (?\s . (left-fringe diff-fringe-nul fringe))))))
           (put-text-property (match-beginning 0) (match-end 0) 'display spec))))
     ;; Mimicks the output of Magit's diff.
     ;; FIXME: This has only been tested with Git's diff output.