branch: elpa/isl
commit 950d398938c71a9a9facf843fc4612d84ada6f2a
Author: Thierry Volpiatto <[email protected]>
Commit: Thierry Volpiatto <[email protected]>

    Use overlay-end
---
 isearch-light.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/isearch-light.el b/isearch-light.el
index 0cc822f34c1..778cc916c39 100644
--- a/isearch-light.el
+++ b/isearch-light.el
@@ -72,7 +72,7 @@
       (overlay-put isl-last-overlay 'face 'isl-match))
     (when isl-iterator
       (let* ((ov (iterator:next isl-iterator))
-             (pos (and ov (overlay-start ov))))
+             (pos (and ov (overlay-end ov))))
         (when (and ov pos)
           (setq isl-last-overlay ov)
           (overlay-put ov 'face 'isl-on)
@@ -143,7 +143,7 @@
                   isl-number-results (length isl-item-overlays))
             (overlay-put isl-last-overlay 'face 'isl-on)
             (isl--set-iterator)
-            (goto-char (overlay-start (iterator:next isl-iterator))))))
+            (goto-char (overlay-end (iterator:next isl-iterator))))))
       (isl--setup-mode-line))))
 
 (defun isl--setup-mode-line ()

Reply via email to