diff options
author | Carl Worth <cworth@cworth.org> | 2009-11-30 16:48:19 -0800 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2009-11-30 16:48:19 -0800 |
commit | 07a46d10eaf93707f37f3325c8192ef0684ad06d (patch) | |
tree | 219550c6b7a651cf362be1fef7d71f360013c1ff | |
parent | c24360e59e90893f1edf2a95289c1091ccd98975 (diff) |
notmuch.el: Fix notmuch-search-scroll-down to go to first thread.
When there's no more to scroll, we want to select the first thread.
This used to work, and I'm not sure when it broke, (perhaps when we
switched from post-process decorating of the search results to
filtering). Fix the calculation to work again.
-rw-r--r-- | notmuch.el | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 () |