]> code.delx.au - gnu-emacs-elpa/blobdiff - packages/el-search/el-search.el
When coming from isearch, don't move to other end
[gnu-emacs-elpa] / packages / el-search / el-search.el
index ff24166dd0b9daf2559bba6ed8b8371a9727cde0..0481fef73b62db4e227ae81c996e63a248e3780f 100644 (file)
@@ -848,12 +848,7 @@ Hit any key to proceed."
   (el-search-search-and-replace-pattern from to mapping))
 
 (defun el-search--take-over-from-isearch ()
-  (let ((other-end isearch-other-end)
-        (input isearch-string))
-    (isearch-exit)
-    (when (and other-end (< other-end (point)))
-      (goto-char other-end))
-    input))
+  (prog1 isearch-string (isearch-exit)))
 
 ;;;###autoload
 (defun el-search-search-from-isearch ()