Skip to content

Commit 8eb6029

Browse files
committed
handle case where blink-matching-paren-distance is nil
1 parent 4e938b1 commit 8eb6029

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rust-mode.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,8 @@ This is written mainly to be used as `end-of-defun-function' for Rust."
639639
;; didn't find a match
640640
(> angle-brackets 0)
641641
;; we have no guarantee of a match, so give up eventually
642-
(< (- start-point (point)) blink-matching-paren-distance)
642+
(or (not blink-matching-paren-distance)
643+
(< (- start-point (point)) blink-matching-paren-distance))
643644
;; didn't hit the top of the buffer
644645
(> (point) (point-min))
645646
;; didn't hit something else weird like a `;`

0 commit comments

Comments
 (0)