aboutsummaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-03-27 20:56:19 +0200
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-03-27 20:56:19 +0200
commit557c7f938ba3326e9051c837ad9aa33cc1d13169 (patch)
tree160eb15b715a1eb8837115baf0bef4e9699208fe /lisp
parent1980903f2dc179a15aecaceabd3c23a1d550d238 (diff)
try moving to prev item after moving to POS on reload after action
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mastodon-tl.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index e07d3dd..fe86c7e 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -2105,7 +2105,8 @@ POS is a number, where point will be placed."
(match-string 2 endpoint))))))
;; TODO: sends point to POS, which was where point was in buffer before reload. This is very rough; we may have removed an item (deleted a toot, cleared a notif), so the buffer will be smaller, point will end up past where we were, etc.
(when pos
- (goto-char pos))))
+ (goto-char pos)
+ (mastodon-tl--goto-prev-item))))
(defun mastodon-tl--build-link-header-url (str)
"Return a URL from STR, an http Link header."