]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch.el
notmuch.el: Fix notmuch-search-scroll-down to go to first thread.
[notmuch] / notmuch.el
index 40d787538338cfb2eda269be8441794bb25f4e5a..9eb84696ff56dcb6134ac2d29e72df0473ec7157 100644 (file)
@@ -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.
   ; 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 ()
     (scroll-down nil)))
 
 (defun notmuch-search-goto-last-thread ()