X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch.el;h=ff9b519b2d6052cf52d68b825b48ed7946653f1a;hb=75f703e7c2fe33920342c1bc534d19935c1e3513;hp=8d69fc8751082b12fedea6e042c066e33f9b77a2;hpb=4ddb5ab4dd42208ba24989f188bdd06ab7865b5e;p=notmuch diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 8d69fc87..ff9b519b 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -575,9 +575,10 @@ This function advances the next thread when finished." (if (and atbob (not (string= notmuch-search-target-thread "found"))) (set 'never-found-target-thread t)))))) - (if (and never-found-target-thread + (when (and never-found-target-thread notmuch-search-target-line) - (goto-line notmuch-search-target-line))))))) + (goto-char (point-min)) + (forward-line (1- notmuch-search-target-line)))))))) (defcustom notmuch-search-line-faces nil "Tag/face mapping for line highlighting in notmuch-search.