X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-show.el;h=b565f336832382862101df17a7a203e76ce46561;hb=8392a7cc54c4c08c0abbf2cc2707774f504ec33f;hp=98db8f22e2e0333d02d72afcc98afb79f48cd9b8;hpb=e3260d025389c2e98dbda58cff1c214497813bc2;p=notmuch diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 98db8f22..b565f336 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -1157,8 +1157,9 @@ current window), advance to the next open message." (ret nil)) (while (invisible-p visible-end-of-this-message) (setq visible-end-of-this-message - (previous-single-char-property-change visible-end-of-this-message - 'invisible))) + (max (point-min) + (1- (previous-single-char-property-change + visible-end-of-this-message 'invisible))))) (cond ;; Ideally we would test `end-of-this-message' against the result ;; of `window-end', but that doesn't account for the fact that