summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrotzeit <brotzeitmacher@gmail.com>2021-12-28 17:35:40 +0100
committerGitHub <noreply@github.com>2021-12-28 17:35:40 +0100
commit0099b2c0bb502d77ff61f37c02059e082a9610b6 (patch)
treeaae041d4c685df682f6c0fde7347c45dd8bf4455
parentbc71aa60068163166230364d349db56bf534e772 (diff)
parentffaefd72539af7d17690b947d38e58a103e2bd51 (diff)
downloadrust-mode-0099b2c0bb502d77ff61f37c02059e082a9610b6.tar.gz
Merge pull request #431 from phst/looking-back
Avoid obsolete calling convention of ‘looking-back’.
-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))))