summaryrefslogtreecommitdiff
path: root/rust-mode.el
diff options
context:
space:
mode:
authorMiodrag Milenkovic <miodrag.milenkovic@gmail.com>2019-02-28 20:09:59 -0500
committerMiodrag Milenkovic <miodrag.milenkovic@gmail.com>2019-02-28 20:09:59 -0500
commite2e713eaafde203a1767048400058d3b7fe5d41a (patch)
tree3bf50a350304adc090a192aa64f4c89f667021fc /rust-mode.el
parentdd231edbd8a2805aaf0728fb5800a356ed1d14ce (diff)
downloadrust-mode-e2e713eaafde203a1767048400058d3b7fe5d41a.tar.gz
refer to (point-min) instead of 1
Diffstat (limited to 'rust-mode.el')
-rw-r--r--rust-mode.el2
1 files changed, 1 insertions, 1 deletions
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