aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-search.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus@riseup.net>2024-08-04 09:50:18 +0200
committermarty hiatt <martianhiatus@riseup.net>2024-08-04 09:50:18 +0200
commit4ac5b57ae6c4e94439a44820d81df00785d420c4 (patch)
tree1202433689a7b5f00eb4c110d2ffb7712c8a0892 /lisp/mastodon-search.el
parenta191fb5f3fb118892845792fe34ab41d98ccdf53 (diff)
parentda0e348bc7aaa48474da8cf0ee657fed3f5e485d (diff)
Merge branch 'develop'
Diffstat (limited to 'lisp/mastodon-search.el')
-rw-r--r--lisp/mastodon-search.el4
1 files changed, 2 insertions, 2 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