emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master dbaa1a8 15/20: Fix avy-background some more


From: Oleh Krehel
Subject: [elpa] master dbaa1a8 15/20: Fix avy-background some more
Date: Sat, 09 May 2015 11:57:54 +0000

branch: master
commit dbaa1a81392947cb54d704d8b9918033e92ba5dc
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    Fix avy-background some more
    
    * 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 |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/avy-jump.el b/avy-jump.el
index ffd415c..848a50d 100644
--- a/avy-jump.el
+++ b/avy-jump.el
@@ -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))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]