branch: elpa/isl
commit 95ccfdc6e3b4865aef0a52913a3f3c66281fce4e
Author: Thierry Volpiatto <[email protected]>
Commit: Thierry Volpiatto <[email protected]>
Fix error when resuming a search never started
I.e. User entered M-x isl-search but didn't enter anything at prompt
and aborted with quit.
---
isl.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/isl.el b/isl.el
index 3dcd53f56f2..d8de3110317 100644
--- a/isl.el
+++ b/isl.el
@@ -909,7 +909,8 @@ appended at end."
'isl-last-query isl-current-buffer)))
(quit
(setq isl--quit t)
- (goto-char isl-initial-pos)))
+ (when isl-initial-pos
+ (goto-char isl-initial-pos))))
(isl-cleanup)
;; Avoid loosing focus in helm help buffer.
(unless (eq (window-buffer (selected-window))