]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch.el
notmuch.el: Avoid infinite loop marking up message with no parts.
[notmuch] / notmuch.el
index c0bb55274943832b187a44cf04e6acbb009ba0dc..ff4a0bd0205a1afa58837e1054205600917580b2 100644 (file)
@@ -752,7 +752,8 @@ is what to put on the button."
               ; determine whether we've left the current message.
               (if (re-search-forward notmuch-show-part-begin-regexp nil t)
                   (beginning-of-line)))))
-        (goto-char end))))
+        (goto-char end))
+    (goto-char end)))
 
 (defun notmuch-show-markup-parts-region (beg end depth)
   (save-excursion