summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2022-04-15 11:06:44 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2022-04-15 11:06:44 +0200
commite95c545180a63cce49e8cdeff0d2660c2ddac9ec (patch)
treed279ecc4d34338d7302b3f4121694c91b823b644
parent504779f744ccc33c2177dafa34e21d83f6c640a0 (diff)
downloademacs-e95c545180a63cce49e8cdeff0d2660c2ddac9ec.tar.gz
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.
-rw-r--r--lisp/emacs-lisp/text-property-search.el1
1 files changed, 0 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/text-property-search.el b/lisp/emacs-lisp/text-property-search.el
index 9f86a28eb64..2494e948078 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))