Fix avy-background for multiple windows

* avy-jump.el (avy--process): Update.

Fixes #26
This commit is contained in:
Oleh Krehel 2015-05-09 12:52:38 +02:00
parent 9e6561b646
commit 4007986c4c

View File

@ -122,7 +122,11 @@ Use OVERLAY-FN to visualize the decision overlay."
(1
(car candidates))
(t
(avy--make-backgrounds (list (selected-window)))
(avy--make-backgrounds
(if avy-all-windows
(window-list)
(list (selected-window))
))
(avy-read (avy-tree candidates avy-keys)
overlay-fn
#'avy--remove-leading-chars)))