avy.el (avy--read-candidates): Use avy-dowindows

Fixes #114
This commit is contained in:
Oleh Krehel 2015-11-11 13:50:04 +01:00
parent 1b78fb0d89
commit edf1259f25

5
avy.el
View File

@ -1175,8 +1175,7 @@ This function obeys `avy-all-windows' setting."
;; Highlight
(when (>= (length str) 1)
(let (found)
(dolist (win (avy-window-list))
(with-selected-window win
(avy-dowindows nil
(dolist (pair (avy--find-visible-regions
(window-start)
(window-end (selected-window) t)))
@ -1191,7 +1190,7 @@ This function obeys `avy-all-windows' setting."
(setq found t)
(push ov overlays)
(overlay-put ov 'window (selected-window))
(overlay-put ov 'face 'avy-goto-char-timer-face))))))))
(overlay-put ov 'face 'avy-goto-char-timer-face)))))))
;; No matches at all, so there's surely a typo in the input.
(unless found (beep)))))
(nreverse (mapcar (lambda (ov)