X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch.el;h=9eb84696ff56dcb6134ac2d29e72df0473ec7157;hp=40d787538338cfb2eda269be8441794bb25f4e5a;hb=07a46d10eaf93707f37f3325c8192ef0684ad06d;hpb=c24360e59e90893f1edf2a95289c1091ccd98975 diff --git a/notmuch.el b/notmuch.el index 40d78753..9eb84696 100644 --- a/notmuch.el +++ b/notmuch.el @@ -977,8 +977,8 @@ thread from that buffer can be show when done with this one)." ; directly to that position. (We have to count lines since the ; window-start position is not the same as point-min due to the ; invisible thread-ID characters on the first line. - (if (equal (count-lines (point-min) (window-start)) 1) - (goto-char (window-start)) + (if (equal (count-lines (point-min) (window-start)) 0) + (goto-char (point-min)) (scroll-down nil))) (defun notmuch-search-goto-last-thread ()