mirror of
https://github.com/abo-abo/avy.git
synced 2025-10-14 05:43:04 +00:00
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.
This commit is contained in:
parent
4007986c4c
commit
dbaa1a8139
@ -125,8 +125,7 @@ Use OVERLAY-FN to visualize the decision overlay."
|
|||||||
(avy--make-backgrounds
|
(avy--make-backgrounds
|
||||||
(if avy-all-windows
|
(if avy-all-windows
|
||||||
(window-list)
|
(window-list)
|
||||||
(list (selected-window))
|
(list (selected-window))))
|
||||||
))
|
|
||||||
(avy-read (avy-tree candidates avy-keys)
|
(avy-read (avy-tree candidates avy-keys)
|
||||||
overlay-fn
|
overlay-fn
|
||||||
#'avy--remove-leading-chars)))
|
#'avy--remove-leading-chars)))
|
||||||
@ -145,6 +144,7 @@ Use OVERLAY-FN to visualize the decision overlay."
|
|||||||
(window-end w)
|
(window-end w)
|
||||||
(window-buffer w))))
|
(window-buffer w))))
|
||||||
(overlay-put ol 'face 'avy-background-face)
|
(overlay-put ol 'face 'avy-background-face)
|
||||||
|
(overlay-put ol 'window w)
|
||||||
ol))
|
ol))
|
||||||
wnd-list))))
|
wnd-list))))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user