emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master ea5e33d: Fix bogus test in body of a while loop


From: Lars Ingebrigtsen
Subject: master ea5e33d: Fix bogus test in body of a while loop
Date: Thu, 26 Dec 2019 13:46:33 -0500 (EST)

branch: master
commit ea5e33d1da3b363e60c50171c62edba121086551
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    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 28c4ceb..a30fa63 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]