From 5622793b26a01777b1d001a4c2be6f095a5b82e1 Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Wed, 15 Feb 2023 14:11:06 +0100 Subject: fave/boost: prevent moving to next toot if point already inside byline --- lisp/mastodon-toot.el | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lisp/mastodon-toot.el') diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el index 3f19a0d..7b9163a 100644 --- a/lisp/mastodon-toot.el +++ b/lisp/mastodon-toot.el @@ -308,6 +308,10 @@ Remove MARKER if REMOVE is non-nil, otherwise add it." (when at-byline-p ;; leave point after the marker: (unless remove + ;; if point is inside the byline, back up first so + ;; we don't move to the following toot: + (beginning-of-line) + (previous-line) (mastodon-tl--goto-next-toot))))) (defun mastodon-toot--action (action callback) -- cgit v1.2.3