emacs-diffs
[Top][All Lists]
Advanced

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

master dd2c37d: Fix OBOE in flyspell-check-previous-highlighted-word


From: Stefan Kangas
Subject: master dd2c37d: Fix OBOE in flyspell-check-previous-highlighted-word
Date: Wed, 2 Sep 2020 11:31:37 -0400 (EDT)

branch: master
commit dd2c37d0e1d5dcbcd2658b8a5b9959996a133373
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>

    Fix OBOE in flyspell-check-previous-highlighted-word
    
    * lisp/textmodes/flyspell.el
    (flyspell-check-previous-highlighted-word): Fix off-by-one error when
    word is at (point-min).  (Bug#39898)
    
    Suggested by OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>.
---
 lisp/textmodes/flyspell.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el
index 9805928..6889d7e 100644
--- a/lisp/textmodes/flyspell.el
+++ b/lisp/textmodes/flyspell.el
@@ -1904,7 +1904,7 @@ before point that's highlighted as misspelled."
          (while (and (setq pos (previous-overlay-change pos))
                      (not (= pos pos1)))
            (setq pos1 pos)
-           (if (> pos (point-min))
+           (if (>= pos (point-min))
                (progn
                  (setq ovs (overlays-at pos))
                  (while (consp ovs)



reply via email to

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