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

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

[nongnu] elpa/rust-mode 86db9bd 166/486: Merge pull request #65 from tro


From: ELPA Syncer
Subject: [nongnu] elpa/rust-mode 86db9bd 166/486: Merge pull request #65 from tromey/blink-matching-paren
Date: Sat, 7 Aug 2021 09:25:11 -0400 (EDT)

branch: elpa/rust-mode
commit 86db9bdb55e9812425f4c9ece47b1bc2b5dd836b
Merge: 4e938b1 8eb6029
Author: Niko Matsakis <niko@alum.mit.edu>
Commit: Niko Matsakis <niko@alum.mit.edu>

    Merge pull request #65 from tromey/blink-matching-paren
    
    handle case where blink-matching-paren-distance is nil
---
 rust-mode.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/rust-mode.el b/rust-mode.el
index d15dee4..58df76d 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -639,7 +639,8 @@ This is written mainly to be used as 
`end-of-defun-function' for Rust."
               ;; didn't find a match
               (> angle-brackets 0)
               ;; we have no guarantee of a match, so give up eventually
-              (< (- start-point (point)) blink-matching-paren-distance)
+             (or (not blink-matching-paren-distance)
+                 (< (- start-point (point)) blink-matching-paren-distance))
               ;; didn't hit the top of the buffer
               (> (point) (point-min))
               ;; didn't hit something else weird like a `;`



reply via email to

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