projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
504779f
)
Fix off-by-one error in text-property-search-backward
author
Lars Ingebrigtsen
<larsi@gnus.org>
Fri, 15 Apr 2022 09:06:44 +0000
(11:06 +0200)
committer
Lars 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
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/text-property-search.el
b/lisp/emacs-lisp/text-property-search.el
index 9f86a28eb643220f2673267bb53f026f94c3200f..2494e948078666f5896696141c7f17399bdb9107 100644
(file)
--- 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))