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

3
avy.el
View File

@@ -1351,11 +1351,12 @@ When ARG is non-nil, do the opposite of `avy-all-windows'."
"Jump to one of the current isearch candidates." "Jump to one of the current isearch candidates."
(interactive) (interactive)
(avy-with avy-isearch (avy-with avy-isearch
(let ((avy-background nil)
(avy-case-fold-search case-fold-search)) (avy-case-fold-search case-fold-search))
(prog1 (prog1
(avy-process (avy-process
(avy--regex-candidates (if isearch-regexp (avy--regex-candidates (if isearch-regexp
isearch-string isearch-string
(regexp-quote isearch-string)))) (regexp-quote isearch-string))))
(isearch-done))))) (isearch-done)))))