avy.el (avy--read-candidates): Use avy-window-list

Re #100
This commit is contained in:
Oleh Krehel 2015-10-21 20:37:55 +02:00
parent 0a18a45959
commit df181f1e77

4
avy.el
View File

@ -1131,9 +1131,7 @@ This function obeys `avy-all-windows' setting."
(setq str (concat str (list char))))) (setq str (concat str (list char)))))
;; Highlight ;; Highlight
(when (>= (length str) 1) (when (>= (length str) 1)
(dolist (win (if avy-all-windows (dolist (win (avy-window-list))
(window-list)
(list (selected-window))))
(with-selected-window win (with-selected-window win
(dolist (pair (avy--find-visible-regions (dolist (pair (avy--find-visible-regions
(window-start) (window-start)