emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/rainbow-delimiters d35b992378 106/188: Don't error when hi


From: ELPA Syncer
Subject: [nongnu] elpa/rainbow-delimiters d35b992378 106/188: Don't error when highlighting an unmatched closing delimiter.
Date: Sat, 1 Jan 2022 00:58:56 -0500 (EST)

branch: elpa/rainbow-delimiters
commit d35b9923788893185e8611a2504ff7cdd8de76cc
Author: Fanael Linithien <fanael4@gmail.com>
Commit: Fanael Linithien <fanael4@gmail.com>

    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)))))))))))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]