From: Lars Ingebrigtsen Date: Thu, 26 Dec 2019 18:46:19 +0000 (+0100) Subject: Fix bogus test in body of a while loop X-Git-Tag: emacs-28.0.90~7932 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ea5e33d1da3b363e60c50171c62edba121086551;p=emacs.git Fix bogus test in body of a while loop * lisp/gnus/nnheader.el (nnheader-find-nov-line): Fix return value from while loop. --- diff --git a/lisp/gnus/nnheader.el b/lisp/gnus/nnheader.el index 28c4cebb2d1..a30fa637960 100644 --- a/lisp/gnus/nnheader.el +++ b/lisp/gnus/nnheader.el @@ -487,8 +487,8 @@ the line could be found." (< num article))) (forward-line 1) (setq found (point)) - (or (eobp) - (= (setq num (read cur)) article))) + (unless (eobp) + (setq num (read cur)))) (unless (eq num article) (goto-char found))) (beginning-of-line)