Skip to content

Commit e2e713e

Browse files
committed
refer to (point-min) instead of 1
1 parent dd231ed commit e2e713e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Like `looking-back' but for fixed strings rather than regexps (so that it's not
8080

8181
(defun rust-looking-back-macro ()
8282
"Non-nil if looking back at an ident followed by a !"
83-
(if (> (point) 2)
83+
(if (> (- (point) (point-min)) 1)
8484
(save-excursion (backward-char) (and (= ?! (char-after)) (rust-looking-back-ident)))))
8585

8686
;; Syntax definitions and helpers

0 commit comments

Comments
 (0)