summaryrefslogtreecommitdiff
path: root/s.el
diff options
context:
space:
mode:
authorMagnar Sveen <magnars@gmail.com>2016-05-09 08:56:05 +0200
committerMagnar Sveen <magnars@gmail.com>2016-05-09 08:56:05 +0200
commit46d44f37164bbe365b4a45c85dd022cc55740b53 (patch)
tree76141084b201ac793702e4e99b6fc24c7b4e8e5e /s.el
parent66c25dfcf54505ca18ba473b6e361fd86805e116 (diff)
parent4af787c030379f7f9f0db64efba90036c010df88 (diff)
Merge pull request #89 from kuanyui/master
Fix wrong behavior in s-matched-positions-all
Diffstat (limited to 's.el')
-rw-r--r--s.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/s.el b/s.el
index c1ebd78..d9e1dd3 100644
--- a/s.el
+++ b/s.el
@@ -429,7 +429,7 @@ SUBEXP-DEPTH is 0 by default."
(< pos (length string)))
(let ((m (match-end subexp-depth)))
(push (cons (match-beginning subexp-depth) (match-end subexp-depth)) result)
- (setq pos m)))
+ (setq pos (match-end 0))))
(nreverse result)))
(defun s-match (regexp s &optional start)