diff options
author | mousebot <mousebot@riseup.net> | 2022-02-11 17:32:35 +0100 |
---|---|---|
committer | mousebot <mousebot@riseup.net> | 2022-02-11 17:54:13 +0100 |
commit | 36d9ccab439817bb3ae308cdf612ef30c47f2391 (patch) | |
tree | 253bdbfa27cb43992f9a5644c52e48708206a6dd /lisp/mastodon-toot.el | |
parent | a9870b3c6256643ff9f3d049f358ef4a55d606f2 (diff) |
put point after a boost/fave marker on success
this will leave point on the author-byline, which is where we want it to be,
as the marker is not strictly part of the byline, and we are adding
info/actions to the author-byline.
Diffstat (limited to 'lisp/mastodon-toot.el')
-rw-r--r-- | lisp/mastodon-toot.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el index b50cbf6..571acd3 100644 --- a/lisp/mastodon-toot.el +++ b/lisp/mastodon-toot.el @@ -200,7 +200,10 @@ Remove MARKER if REMOVE is non-nil, otherwise add it." (unless remove (goto-char bol) (insert (format "(%s) " - (propertize marker 'face 'success))))))) + (propertize marker 'face 'success))))) + ;; leave point after the marker: + (unless remove + (mastodon-tl--goto-next-toot)))) (defun mastodon-toot--action (action callback) "Take ACTION on toot at point, then execute CALLBACK. |