branch: elpa/magit
commit bc2a5172d267cd780bd252932093b36eebc33f45
Author: Jonas Bernoulli <jo...@bernoul.li>
Commit: Jonas Bernoulli <jo...@bernoul.li>

    magit-section-highlight-selection: Cosmetics
---
 lisp/magit-section.el | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/lisp/magit-section.el b/lisp/magit-section.el
index d1f8de02d7..9b34aae51f 100644
--- a/lisp/magit-section.el
+++ b/lisp/magit-section.el
@@ -1765,11 +1765,10 @@ part of the hook variable, then such a region would be
 invisible."
   (when (and selection
              (not (and (eq this-command 'mouse-drag-region))))
-    (dolist (section selection)
-      (magit-section-make-overlay (oref section start)
-                                  (or (oref section content)
-                                      (oref section end))
-                                  'magit-section-heading-selection))
+    (dolist (sibling selection)
+      (with-slots (start content end heading-selection-face) sibling
+        (magit-section-make-overlay start (or content end)
+                                    'magit-section-heading-selection)))
     t))
 
 (defun magit-section-make-overlay (start end face)

Reply via email to