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

    Exit with no error when no candidates
---
 isl.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/isl.el b/isl.el
index 5ef6c4c59c..9b39f75b85 100644
--- a/isl.el
+++ b/isl.el
@@ -476,7 +476,7 @@ to end."
   "Exit minibuffer and jump at current position."
   (interactive)
   (with-selected-window (minibuffer-selected-window)
-    (when isl--last-overlay
+    (when (and isl--last-overlay (overlay-buffer isl--last-overlay))
       ;; Ensure user haven't scrolled to another place.
       (let ((end (overlay-end isl--last-overlay))
             (lp (overlay-get isl--last-overlay 'line-prefix)))

Reply via email to