avy.el (avy-isearch): Return relevant result

Fixes #281
This commit is contained in:
Oleh Krehel 2019-09-25 12:54:05 +02:00
parent 5f2eba5f59
commit 87394c9a88

11
avy.el
View File

@ -1351,11 +1351,12 @@ When ARG is non-nil, do the opposite of `avy-all-windows'."
(avy-with avy-isearch
(let ((avy-background nil)
(avy-case-fold-search case-fold-search))
(avy-process
(avy--regex-candidates (if isearch-regexp
isearch-string
(regexp-quote isearch-string))))
(isearch-done))))
(prog1
(avy-process
(avy--regex-candidates (if isearch-regexp
isearch-string
(regexp-quote isearch-string))))
(isearch-done)))))
;;;###autoload
(defun avy-goto-word-0 (arg &optional beg end)