branch: elpa/rainbow-delimiters
commit d35b9923788893185e8611a2504ff7cdd8de76cc
Author: Fanael Linithien <[email protected]>
Commit: Fanael Linithien <[email protected]>
Don't error when highlighting an unmatched closing delimiter.
Fixes #44.
---
rainbow-delimiters.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/rainbow-delimiters.el b/rainbow-delimiters.el
index 4d7ba136e5..0614292273 100644
--- a/rainbow-delimiters.el
+++ b/rainbow-delimiters.el
@@ -513,8 +513,8 @@ Used by font-lock for dynamic highlighting."
(rainbow-delimiters-apply-color (nthcdr 2
closing-delim-info)
depth
delim-pos
- (= (nth 1
closing-delim-info)
-
matching-opening-delim))
+ (eq (nth 1
closing-delim-info)
+
matching-opening-delim))
(setq depth (if (<= depth 0)
0 ; unmatched delim
(1- depth)))))))))))))