]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix off-by-one error in text-property-search-backward
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 15 Apr 2022 09:06:44 +0000 (11:06 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 15 Apr 2022 09:06:44 +0000 (11:06 +0200)
* lisp/emacs-lisp/text-property-search.el
(text-property-search-backward): Fix off-by-one error -- this
would result in not finding the previous (non-)match when at the
first character in a field.

lisp/emacs-lisp/text-property-search.el

index 9f86a28eb643220f2673267bb53f026f94c3200f..2494e948078666f5896696141c7f17399bdb9107 100644 (file)
@@ -166,7 +166,6 @@ and if a matching region is found, place point at the start of the region."
     (let ((origin (point))
           (ended nil)
           pos)
-      (forward-char -1)
       ;; Find the previous candidate.
       (while (not ended)
         (setq pos (previous-single-property-change (point) property))