branch: externals/avy
commit 87394c9a880104a08d0f0e2d4149ac2d70cc192f
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
avy.el (avy-isearch): Return relevant result
Fixes #281
---
avy.el | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/avy.el b/avy.el
index 3096e3d33f..8f76e293d1 100644
--- a/avy.el
+++ b/avy.el
@@ -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)