branch: elpa/git-commit
commit 10b5407131d4299ca9ed038a23a3a41bcaac14fc
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>

    magit-diff-highlight-list: Ensure delayed highlighting takes place
---
 lisp/magit-diff.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/magit-diff.el b/lisp/magit-diff.el
index a5183b6899..dd384e870c 100644
--- a/lisp/magit-diff.el
+++ b/lisp/magit-diff.el
@@ -3022,7 +3022,8 @@ are highlighted."
       (unless (and (region-active-p)
                    (<= (region-beginning) beg))
         (magit-section-make-overlay beg cnt 'magit-section-highlight))
-      (unless (oref section hidden)
+      (if (oref section hidden)
+          (oset section washer #'ignore)
         (dolist (child (oref section children))
           (when (or (eq this-command 'mouse-drag-region)
                     (not (and (region-active-p)

Reply via email to