From 87394c9a880104a08d0f0e2d4149ac2d70cc192f Mon Sep 17 00:00:00 2001 From: Oleh Krehel Date: Wed, 25 Sep 2019 12:54:05 +0200 Subject: [PATCH] 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 3096e3d..8f76e29 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)