From e2e713eaafde203a1767048400058d3b7fe5d41a Mon Sep 17 00:00:00 2001 From: Miodrag Milenkovic Date: Thu, 28 Feb 2019 20:09:59 -0500 Subject: refer to (point-min) instead of 1 --- rust-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rust-mode.el') diff --git a/rust-mode.el b/rust-mode.el index c3d132a..bc181ad 100644 --- a/rust-mode.el +++ b/rust-mode.el @@ -80,7 +80,7 @@ Like `looking-back' but for fixed strings rather than regexps (so that it's not (defun rust-looking-back-macro () "Non-nil if looking back at an ident followed by a !" - (if (> (point) 2) + (if (> (- (point) (point-min)) 1) (save-excursion (backward-char) (and (= ?! (char-after)) (rust-looking-back-ident))))) ;; Syntax definitions and helpers -- cgit v1.2.3