branch: elpa/isl
commit 39abe6f9809aeedb977385914a7578acc9265d84
Author: Thierry Volpiatto <[email protected]>
Commit: Thierry Volpiatto <[email protected]>
REturn to initial pos when no matches
---
isearch-light.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/isearch-light.el b/isearch-light.el
index d403923656f..d0f2b245167 100644
--- a/isearch-light.el
+++ b/isearch-light.el
@@ -184,7 +184,7 @@
(invalid-regexp nil))
(setq isl-item-overlays (reverse isl-item-overlays)))
(if (null isl-item-overlays)
- (setq isl-number-results 0)
+ (progn (setq isl-number-results 0) (goto-char isl-initial-pos))
(setq isl-last-overlay
(isl-closest-overlay isl-initial-pos isl-item-overlays)
isl-number-results (length isl-item-overlays))