branch: elpa/isl
commit 9d21e591c4a7e583fcf7822531826a73bf400686
Author: Thierry Volpiatto <[email protected]>
Commit: Thierry Volpiatto <[email protected]>
Goto last overlay in case
user have scrolled to another place.
---
isearch-light.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/isearch-light.el b/isearch-light.el
index 84766f286c3..ff824249b62 100644
--- a/isearch-light.el
+++ b/isearch-light.el
@@ -207,6 +207,8 @@ It put overlay on current position, move to next overlay
using
"The exit command for isl."
(interactive)
(with-selected-window (minibuffer-selected-window)
+ ;; Ensure user haven't scrolled to another place.
+ (goto-char (overlay-end isl--last-overlay))
(when isl-save-pos-to-mark-ring
(set-marker (mark-marker) isl-initial-pos)
(push-mark isl-initial-pos 'nomsg))