`magit-highlight-indentation' states that the *last* matching item
in the list should apply, so let's set the ":from-end" argument to t.

Signed-off-by: Pieter Praet <[email protected]>
---
 magit.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/magit.el b/magit.el
index c5f7fbe..9720734 100644
--- a/magit.el
+++ b/magit.el
@@ -3249,7 +3249,7 @@ (defun magit-highlight-line-whitespace ()
               (cdr (cl-find-if (lambda (pair)
                                  (string-match-p (car pair) default-directory))
                                (default-value magit-highlight-indentation)
-                               :from-end))))))
+                               :from-end t))))))
       (when (and magit-highlight-trailing-whitespace
                  (looking-at "^[-+].*?\\([ \t]+\\)$"))
         (overlay-put (make-overlay (match-beginning 1) (match-end 1))
-- 
1.7.11.1

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"magit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to