X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-show.el;h=20f89970a00a7008fadf818e5873662c12c48c06;hb=9ff72a83bda69e6c064bd8be9f201a4626bff54e;hp=4d6c014b0690dc7a563dfa64286eb6c4aaedaee0;hpb=e504b56f24c291199d835aefcdb7bbb6809e8266;p=notmuch diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 4d6c014b..20f89970 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -1185,6 +1185,10 @@ reset based on the original query." (let ((inhibit-read-only t) (state (unless reset-state (notmuch-show-capture-state)))) + ;; erase-buffer does not seem to remove overlays, which can lead + ;; to weird effects such as remaining images, so remove them + ;; manually. + (remove-overlays) (erase-buffer) (notmuch-show-build-buffer) (if state