]> code.delx.au - gnu-emacs-elpa/commitdiff
Fix avy-background some more
authorOleh Krehel <ohwoeowho@gmail.com>
Sat, 9 May 2015 11:02:20 +0000 (13:02 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Sat, 9 May 2015 11:02:20 +0000 (13:02 +0200)
* avy-jump.el (avy--make-backgrounds): Make the overlay local to the
  current window. Avoids the problem when the same buffer is displayed
  twice.

avy-jump.el

index ffd415c559ee9d3c0cb2e2146ecebca5c7f2100c..848a50daf479f391aa659b68e73c9a03baf73f2a 100644 (file)
@@ -125,8 +125,7 @@ Use OVERLAY-FN to visualize the decision overlay."
           (avy--make-backgrounds
            (if avy-all-windows
                (window-list)
-             (list (selected-window))
-             ))
+             (list (selected-window))))
           (avy-read (avy-tree candidates avy-keys)
                     overlay-fn
                     #'avy--remove-leading-chars)))
@@ -145,6 +144,7 @@ Use OVERLAY-FN to visualize the decision overlay."
                                (window-end w)
                                (window-buffer w))))
                       (overlay-put ol 'face 'avy-background-face)
+                      (overlay-put ol 'window w)
                       ol))
                   wnd-list))))