]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch.el
emacs: fix a bug introduced by the recent search cleanups.
[notmuch] / emacs / notmuch.el
index fd1836f1a83555edaa14fb5e214df96c8c00d6e2..d2d82a97601756338617d738c91b5ed75c9d75a0 100644 (file)
@@ -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 ()