branch: elpa/git-commit
commit 77bfae6e2ea5a7715482b0de3ce4ea521d223d8b
Author: Jonas Bernoulli <jo...@bernoul.li>
Commit: Jonas Bernoulli <jo...@bernoul.li>

    magit-insert-child-count: Use same face for preceding space
    
    The heading may not use the `magit-section-heading' face, in which case
    it might look weird if the space between the heading and the count used
    a face that is different from the faces used on either side of it (in
    particular if three different background colors were used).
---
 lisp/magit-section.el | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/lisp/magit-section.el b/lisp/magit-section.el
index e772d110c9..e831de41df 100644
--- a/lisp/magit-section.el
+++ b/lisp/magit-section.el
@@ -1635,9 +1635,8 @@ evaluated its BODY.  Admittedly that's a bit of a hack."
                (eq (char-before (1- content)) ?:))
       (save-excursion
         (goto-char (- content 2))
-        (insert (concat (magit--propertize-face " " 'magit-section-heading)
-                        (magit--propertize-face (format "(%s)" count)
-                                                'magit-section-child-count)))
+        (insert (magit--propertize-face (format " (%s)" count)
+                                        'magit-section-child-count))
         (delete-char 1)))))
 
 ;;; Highlight

Reply via email to