From ea5e33d1da3b363e60c50171c62edba121086551 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Thu, 26 Dec 2019 19:46:19 +0100 Subject: [PATCH] Fix bogus test in body of a while loop * lisp/gnus/nnheader.el (nnheader-find-nov-line): Fix return value from while loop. --- lisp/gnus/nnheader.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.39.2