diff options
author | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2023-10-13 23:40:04 +0200 |
---|---|---|
committer | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2023-10-13 23:40:04 +0200 |
commit | 9bbcc60818209b24c7254a8c44f1ad21169c8077 (patch) | |
tree | 16fae29cbd392f72f6b8c78c6a8617cc8c1fd810 /lisp/mastodon-search.el | |
parent | b591685760865ad3da44e40d7e0546b11f73743d (diff) |
search headings even if no results
Diffstat (limited to 'lisp/mastodon-search.el')
-rw-r--r-- | lisp/mastodon-search.el | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lisp/mastodon-search.el b/lisp/mastodon-search.el index 5c05984..ee1edff 100644 --- a/lisp/mastodon-search.el +++ b/lisp/mastodon-search.el @@ -185,22 +185,20 @@ ACCOUNT-ID means limit search to that account, for \"statuses\" type only." (with-mastodon-buffer buffer #'mastodon-mode nil (mastodon-search-mode) ;; user results: + (mastodon-search--format-heading (upcase type)) (when accts - (mastodon-search--format-heading "USERS") (mastodon-search--insert-users-propertized accts :note) (mastodon-tl--set-buffer-spec buffer "search" 'mastodon-views--insert-users-propertized-note nil params)) ;; hashtag results: (when tags - (mastodon-search--format-heading "HASHTAGS") (mastodon-search--print-tags tags) (mastodon-tl--set-buffer-spec buffer "search" 'mastodon-search--print-tags nil params)) ;; status results: (when statuses - (mastodon-search--format-heading "STATUSES") (mapc #'mastodon-tl--toot statuses) (mastodon-tl--set-buffer-spec buffer "search" 'mastodon-tl--timeline |