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

    Don't recenter when quitting with empty pattern
---
 isearch-light.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/isearch-light.el b/isearch-light.el
index da06f8a846a..f8209d99e94 100644
--- a/isearch-light.el
+++ b/isearch-light.el
@@ -556,7 +556,8 @@ appended at end."
          (setq isl--quit t)
          (goto-char isl-initial-pos)))
     (isl-cleanup)
-    (recenter)))
+    (and (not (string= isl-pattern ""))
+         (recenter))))
 
 ;;;###autoload
 (defun isl-narrow-to-defun ()

Reply via email to