From d35b9923788893185e8611a2504ff7cdd8de76cc Mon Sep 17 00:00:00 2001 From: Fanael Linithien Date: Thu, 16 Oct 2014 23:25:56 +0200 Subject: [PATCH] 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 4d7ba13..0614292 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)))))))))))))