]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-show.el
util: add string-util.[ch]
[notmuch] / emacs / notmuch-show.el
index 4d6c014b0690dc7a563dfa64286eb6c4aaedaee0..20f89970a00a7008fadf818e5873662c12c48c06 100644 (file)
@@ -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