mu4e-headers: remove overlays in mu4e~headers-clear

This is needed to clear-up message threads
This commit is contained in:
Dirk-Jan C. Binnema 2023-11-16 18:59:43 +02:00
parent d9f7b295b4
commit d814d4630f
1 changed files with 1 additions and 2 deletions

View File

@ -295,7 +295,6 @@ This is mostly useful for profiling.")
"Number of headers hidden due to `mu4e-headers-hide-predicate'.")
;;; Clear
(defun mu4e~headers-clear (&optional text)
@ -307,11 +306,11 @@ Optionally, show TEXT."
(let ((inhibit-read-only t))
(with-current-buffer (mu4e-get-headers-buffer)
(mu4e--mark-clear)
(remove-overlays)
(erase-buffer)
(when text
(goto-char (point-min))
(insert (propertize text 'face 'mu4e-system-face 'intangible t)))))))
;;; Misc