]> code.delx.au - gnu-emacs-elpa/commitdiff
Fix avy-background for multiple windows
authorOleh Krehel <ohwoeowho@gmail.com>
Sat, 9 May 2015 10:52:38 +0000 (12:52 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Sat, 9 May 2015 10:52:38 +0000 (12:52 +0200)
* avy-jump.el (avy--process): Update.

Fixes #26

avy-jump.el

index 6efb15845182fb0aba303700ac24c8baade1f8b9..ffd415c559ee9d3c0cb2e2146ecebca5c7f2100c 100644 (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)))