]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-show.el
debian/changelog: Fix email address to avoid lintian complaint.
[notmuch] / emacs / notmuch-show.el
index f5de8ae91a79fdf8679b2b6b13e2776ad208a6a8..eb5335ff2f7f918865d7681fc18a50510e7abce0 100644 (file)
@@ -833,8 +833,8 @@ any effects from previous calls to
       ;; If a small number of lines from the previous message are
       ;; visible, realign so that the top of the current message is at
       ;; the top of the screen.
-      (if (< (count-lines (window-start) (notmuch-show-message-top))
-            next-screen-context-lines)
+      (if (<= (count-screen-lines (window-start) start-of-message)
+             next-screen-context-lines)
          (progn
            (goto-char (notmuch-show-message-top))
            (notmuch-show-message-adjust)))