notmuch.el: Fix to show *something* when all messages are already read.
authorCarl Worth <cworth@cworth.org>
Wed, 4 Nov 2009 19:30:15 +0000 (11:30 -0800)
committerCarl Worth <cworth@cworth.org>
Wed, 4 Nov 2009 19:30:15 +0000 (11:30 -0800)
commit9fc6f4e60d6c2bd98d6bd918af9982131c7fb0b1
tree8eb6d6a46f8691566492be2dbd4ba56ff59e396f
parent46f41d80b023a2ebc03c678ad0e0feb5ac15b45a
notmuch.el: Fix to show *something* when all messages are already read.

With the recent change of showing the first unread message, we would
scroll down to the end of the buffer if all messages were already
read. This would confusingly show nothing visible in the window.

Instead, detect this case and move to the beginning of the buffer.
notmuch.el