summaryrefslogtreecommitdiff
path: root/rust-mode.el
diff options
context:
space:
mode:
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 773251d..ebc2bbc 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -227,7 +227,8 @@ See `prettify-symbols-compose-predicate'."
(pcase match
("||" (not (save-excursion
(goto-char start)
- (looking-back "\\(?:\\<move\\|[[({:=,;]\\) *"))))
+ (looking-back "\\(?:\\<move\\|[[({:=,;]\\) *"
+ (line-beginning-position)))))
("&&" (char-equal (char-after end) ?\s))
(_ t))))