diff options
| author | brotzeit <brotzeitmacher@gmail.com> | 2021-12-28 17:35:40 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-28 17:35:40 +0100 |
| commit | 0099b2c0bb502d77ff61f37c02059e082a9610b6 (patch) | |
| tree | aae041d4c685df682f6c0fde7347c45dd8bf4455 | |
| parent | bc71aa60068163166230364d349db56bf534e772 (diff) | |
| parent | ffaefd72539af7d17690b947d38e58a103e2bd51 (diff) | |
| download | rust-mode-0099b2c0bb502d77ff61f37c02059e082a9610b6.tar.gz | |
Merge pull request #431 from phst/looking-back
Avoid obsolete calling convention of ‘looking-back’.
| -rw-r--r-- | rust-mode.el | 3 |
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)))) |
