aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-tl.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus@riseup.net>2024-06-04 17:19:54 +0200
committermarty hiatt <martianhiatus@riseup.net>2024-06-04 17:20:12 +0200
commitbd2f44911044f64c3303d080649ca2571b876ce1 (patch)
treebf538355a4d0537b67d02501b1b76f2de01d0fa7 /lisp/mastodon-tl.el
parent5e7e38a81a99e110ec62c0ccc622eb3c4b476cbc (diff)
add remove-overlays to with-mastodon-buffer macro
Diffstat (limited to 'lisp/mastodon-tl.el')
-rw-r--r--lisp/mastodon-tl.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index 573c2fa..00e3ce3 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -322,6 +322,7 @@ than `pop-to-buffer'."
(let ((inhibit-read-only t))
(erase-buffer)
(funcall ,mode-fun)
+ (remove-overlays) ; video overlays
(if ,other-window
(switch-to-buffer-other-window ,buffer)
(pop-to-buffer ,buffer '(display-buffer-same-window)))
@@ -1979,7 +1980,6 @@ view all branches of a thread."
;; if we have a thread:
(with-mastodon-buffer buffer #'mastodon-mode nil
(let ((marker (make-marker)))
- (remove-overlays) ; video overlays
(mastodon-tl--set-buffer-spec buffer endpoint
#'mastodon-tl--thread)
(mastodon-tl--timeline (alist-get 'ancestors context) :thread)