From 9bbcc60818209b24c7254a8c44f1ad21169c8077 Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Fri, 13 Oct 2023 23:40:04 +0200 Subject: search headings even if no results --- lisp/mastodon-search.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lisp/mastodon-search.el') 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 -- cgit v1.2.3