summaryrefslogtreecommitdiff
path: root/rust-mode.el
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2015-05-22 08:02:33 -0600
committerTom Tromey <tom@tromey.com>2015-05-22 08:02:33 -0600
commit8eb6029b9d06adf6e250dcee93a8f5921db50978 (patch)
treee99c4c02b4aeb8d49f00b54ce5f7cedbc15d341e /rust-mode.el
parent4e938b13b944ce14ca287eb05bde013f7dde1b9d (diff)
downloadrust-mode-8eb6029b9d06adf6e250dcee93a8f5921db50978.tar.gz
handle case where blink-matching-paren-distance is nil
Diffstat (limited to 'rust-mode.el')
-rw-r--r--rust-mode.el3
1 files changed, 2 insertions, 1 deletions
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 `;`