emacs-diffs
[Top][All Lists]
Advanced

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

master e95c545180 1/2: Fix off-by-one error in text-property-search-back


From: Lars Ingebrigtsen
Subject: master e95c545180 1/2: Fix off-by-one error in text-property-search-backward
Date: Fri, 15 Apr 2022 05:10:24 -0400 (EDT)

branch: master
commit e95c545180a63cce49e8cdeff0d2660c2ddac9ec
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Fix off-by-one error in text-property-search-backward
    
    * 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 | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lisp/emacs-lisp/text-property-search.el 
b/lisp/emacs-lisp/text-property-search.el
index 9f86a28eb6..2494e94807 100644
--- a/lisp/emacs-lisp/text-property-search.el
+++ b/lisp/emacs-lisp/text-property-search.el
@@ -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))



reply via email to

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