Skip to content

Commit 0099b2c

Browse files
authored
Merge pull request #431 from phst/looking-back
Avoid obsolete calling convention of ‘looking-back’.
2 parents bc71aa6 + ffaefd7 commit 0099b2c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rust-mode.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,8 @@ See `prettify-symbols-compose-predicate'."
227227
(pcase match
228228
("||" (not (save-excursion
229229
(goto-char start)
230-
(looking-back "\\(?:\\<move\\|[[({:=,;]\\) *"))))
230+
(looking-back "\\(?:\\<move\\|[[({:=,;]\\) *"
231+
(line-beginning-position)))))
231232
("&&" (char-equal (char-after end) ?\s))
232233
(_ t))))
233234

0 commit comments

Comments
 (0)