branch: elpa/isl
commit 373bd2764156fea7757e312f4cb72dd0d6b094df
Author: Thierry Volpiatto <[email protected]>
Commit: Thierry Volpiatto <[email protected]>
Some vars need to be initialized at startup
---
isearch-light.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/isearch-light.el b/isearch-light.el
index 8c48c682224..04c8c0c136d 100644
--- a/isearch-light.el
+++ b/isearch-light.el
@@ -381,16 +381,16 @@ appended at end."
isl--item-overlays nil
isl--last-overlay nil
isl--number-results nil
- isl--direction 'forward
- isl-initial-pos (point)
- isl-pattern ""
- isl-current-buffer (current-buffer)
isl-search-function (default-value 'isl-search-function)))
;;;###autoload
(defun isl ()
"Start incremental searching in current buffer."
(interactive)
+ (setq isl-initial-pos (point)
+ isl-pattern ""
+ isl--direction 'forward
+ isl-current-buffer (current-buffer))
(condition-case-unless-debug nil
(unwind-protect
(isl-read-from-minibuffer "Search: ")