aboutsummaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mastodon-search.el4
-rw-r--r--lisp/mastodon-tl.el5
2 files changed, 4 insertions, 5 deletions
diff --git a/lisp/mastodon-search.el b/lisp/mastodon-search.el
index e69366e..f862f3c 100644
--- a/lisp/mastodon-search.el
+++ b/lisp/mastodon-search.el
@@ -128,14 +128,14 @@ Optionally add string TYPE after HEADING."
(insert
(mastodon-search--format-heading str type)))
-(defun mastodon-search--format-heading (str &optional type)
+(defun mastodon-search--format-heading (str &optional type no-newline)
"Format STR as a heading.
Optionally add string TYPE after HEADING."
(mastodon-tl--set-face
(concat "\n " mastodon-tl--horiz-bar "\n "
(upcase str) " "
(if type (upcase type) "") "\n"
- " " mastodon-tl--horiz-bar "\n")
+ " " mastodon-tl--horiz-bar (unless no-newline "\n"))
'success))
(defvar mastodon-search-types
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index 70d0223..b9a5535 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -1573,9 +1573,8 @@ Folding decided by `mastodon-tl--fold-toots-at-length'."
(length< body mastodon-tl--fold-toots-at-length))
body
(let* ((heading (mastodon-search--format-heading
- (mastodon-tl--make-link
- "READ MORE"
- 'read-more)))
+ (mastodon-tl--make-link "READ MORE" 'read-more)
+ nil :no-newline))
(display (concat (substring body 0
mastodon-tl--fold-toots-at-length)
heading)))