]> git.notmuchmail.org Git - notmuch/commit
emacs: Fix `notmuch-show-rewind' in the presence of invisible text
authorDavid Edmondson <dme@dme.org>
Mon, 26 Apr 2010 14:53:52 +0000 (15:53 +0100)
committerCarl Worth <cworth@cworth.org>
Mon, 26 Apr 2010 17:33:38 +0000 (10:33 -0700)
commit159b05fcaa8f9cf717bef74ca098d9567c85fe4c
tree216728bb17ce868390279ab4a14d6e4cf3488b34
parente247ae47c10e8f584b7256eef55a5d722f45c0b3
emacs: Fix `notmuch-show-rewind' in the presence of invisible text

When determining whether or not to re-align the head of the current
message with the top of the window, use `count-screen-lines' rather
than `count-lines' to allow for invisible text in the preceding
message. When comparing that number of lines against
`next-screen-context-lines', realign if the number of lines of the
previous message visible is 'smaller than or equal to' rather than
just 'smaller than' to improve usability.
emacs/notmuch-show.el