]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix OBOE in flyspell-check-previous-highlighted-word
authorStefan Kangas <stefankangas@gmail.com>
Wed, 2 Sep 2020 15:31:08 +0000 (17:31 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Wed, 2 Sep 2020 15:31:08 +0000 (17:31 +0200)
* 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

index 98059287210a09d9f4346b2810e67a3e6217d684..6889d7eadac4327643d714b436207bdb97feb6a2 100644 (file)
@@ -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)