aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-toot.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/mastodon-toot.el')
-rw-r--r--lisp/mastodon-toot.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el
index 7efe682..9402241 100644
--- a/lisp/mastodon-toot.el
+++ b/lisp/mastodon-toot.el
@@ -869,7 +869,11 @@ eg. \"feduser@fed.social\" -> \"feduser@fed.social\"."
(save-excursion
;; match full handle inc. domain, or tag including #
;; (see the regexes for subexp 2)
- (when (re-search-backward regex nil :no-error)
+ (when (re-search-backward regex
+ (save-excursion
+ (forward-whitespace -1)
+ (point))
+ :no-error)
(cons (match-beginning 2)
(match-end 2))))))