branch: master
commit 4007986c4cecf67f90f68111e6647df0710b142b
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
Fix avy-background for multiple windows
* avy-jump.el (avy--process): Update.
Fixes #26
---
avy-jump.el | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/avy-jump.el b/avy-jump.el
index 6efb158..ffd415c 100644
--- a/avy-jump.el
+++ b/avy-jump.el
@@ -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)))