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:29 +0200
commit638045a2b2e76d506eab61f7aca23b5439299c39 (patch)
treea6e0b227bb8547acf95b2be55158190042ed5bcd /lisp/mastodon-tl.el
parentb743ca81fcd1883d9ac80daf5ec151b2fd7e94b6 (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 62e4c81..166a0a4 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -323,6 +323,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)))
@@ -2000,7 +2001,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)