diff options
-rw-r--r-- | lisp/mastodon-tl.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el index 691f83d..0fced8c 100644 --- a/lisp/mastodon-tl.el +++ b/lisp/mastodon-tl.el @@ -224,14 +224,17 @@ Move forward (down) the timeline unless BACKWARD is non-nil." (defun mastodon-tl--more () "Append older toots to timeline." (interactive) - (let* ((tl (mastodon-tl--timeline-name)) + (let* ((point-before-update (point)) + (tl (mastodon-tl--timeline-name)) (id (mastodon-tl--oldest-id)) (json (mastodon-tl--more-json tl id))) (when json (with-current-buffer (current-buffer) (let ((inhibit-read-only t)) (goto-char (point-max)) - (mastodon-tl--timeline json)))))) + (mastodon-tl--timeline json) + (goto-char point-before-update) + (mastodon-tl--goto-next-toot)))))) (defun mastodon-tl--update () "Update timeline with new toots." |