branch: elpa/magit
commit 46a5469f28e8d15466dbc1bf915aff9840ce804a
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
magit-diff-paint-hunk: Cosmetics
---
lisp/magit-diff.el | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/lisp/magit-diff.el b/lisp/magit-diff.el
index 3f4f6055cb3..f3703e1d2fd 100644
--- a/lisp/magit-diff.el
+++ b/lisp/magit-diff.el
@@ -3373,14 +3373,13 @@ are highlighted."
(delq section magit-section-unhighlight-sections)))
(magit-diff-highlight-hunk-body
(setq paint t)))))
+ ((and (oref section hidden)
+ (memq section magit-section-unhighlight-sections))
+ (cl-pushnew section magit-section-highlighted-sections)
+ (setq magit-section-unhighlight-sections
+ (delq section magit-section-unhighlight-sections)))
(t
- (cond ((and (oref section hidden)
- (memq section magit-section-unhighlight-sections))
- (cl-pushnew section magit-section-highlighted-sections)
- (setq magit-section-unhighlight-sections
- (delq section magit-section-unhighlight-sections)))
- (t
- (setq paint t)))))
+ (setq paint t)))
(when paint
(save-excursion
(goto-char (oref section start))