diff options
author | Mark Walters <markwalters1009@gmail.com> | 2012-08-02 08:19:37 +0100 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2012-08-02 21:11:53 -0300 |
commit | 3fa00020eaac7dfb403cac239a5e59fb2b5d3e2c (patch) | |
tree | 1222c4234008fa5a8a7dee3e9747cc018e6704ef | |
parent | 015bc16f5352e17cf203e90f2b8f37f3f4ea8c6e (diff) |
emacs: fix a bug introduced by the recent search cleanups.
In commit 5d0883e the function notmuch-search-next-thread was changed.
In particular it only goes to the next message if there is a next
message. This breaks notmuch-show-archive-thread-then-next. Fix this
by going to the "next" message whenever we are on a current message.
-rw-r--r-- | emacs/notmuch.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/emacs/notmuch.el b/emacs/notmuch.el index fd1836f..d2d82a9 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -293,7 +293,7 @@ For a mouse binding, return nil." (defun notmuch-search-next-thread () "Select the next thread in the search results." (interactive) - (when (notmuch-search-get-result (notmuch-search-result-end)) + (when (notmuch-search-get-result) (goto-char (notmuch-search-result-end)))) (defun notmuch-search-previous-thread () |