branch: externals/ement commit b6e41cf0cadd38e884aef21c67683c914968221a Merge: 639665fc14 df75e74f94 Author: Adam Porter <a...@alphapapa.net> Commit: Adam Porter <a...@alphapapa.net>
Merge: Fix recognition of mentions after a newline Fixes #267. --- README.org | 1 + ement-lib.el | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.org b/README.org index af79b6ef24..237bbf02c1 100644 --- a/README.org +++ b/README.org @@ -347,6 +347,7 @@ Ement.el doesn't support encrypted rooms natively, but it can be used transparen *Fixes* + Toggling images to fill the window body no longer triggers unintended scrolling. (Thanks to [[https://github.com/phil-s][Phil Sainty]].) ++ Recognition of mentions after a newline. ([[https://github.com/alphapapa/ement.el/issues/267][#267]]. Thanks to [[https://github.com/phil-s][Phil Sainty]].) ** 0.14 diff --git a/ement-lib.el b/ement-lib.el index 77718de2f8..23c4919863 100644 --- a/ement-lib.el +++ b/ement-lib.el @@ -1029,7 +1029,7 @@ period, anywhere in the body." when (equal name (ement--user-displayname-in room user)) collect user))) (pcase-let* (((cl-struct ement-room members) room) - (regexp (rx (or bos bow (1+ blank)) + (regexp (rx (or bos bow blank "\n") (or (seq (group ;; Group 1: full @-prefixed MXID. "@" (group