mirror of
https://github.com/abo-abo/avy.git
synced 2025-10-13 13:33:03 +00:00
Properly highlight depending on avy-all-windows
Before this change, the highlighting was only performed in the selected window even if avy-all-windows was true. Now it's consistent with the value of that variable.
This commit is contained in:
parent
d439b9d44f
commit
bda04b287b
6
avy.el
6
avy.el
@ -1075,6 +1075,10 @@ read string immediately instead of waiting for another char for
|
|||||||
(setq str (concat str (list char)))))
|
(setq str (concat str (list char)))))
|
||||||
;; Highlight
|
;; Highlight
|
||||||
(when (>= (length str) 1)
|
(when (>= (length str) 1)
|
||||||
|
(dolist (win (if avy-all-windows
|
||||||
|
(window-list)
|
||||||
|
(list (selected-window))))
|
||||||
|
(with-selected-window win
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(goto-char (window-start))
|
(goto-char (window-start))
|
||||||
(setq regex (regexp-quote str))
|
(setq regex (regexp-quote str))
|
||||||
@ -1083,7 +1087,7 @@ read string immediately instead of waiting for another char for
|
|||||||
(let ((ov (make-overlay (match-beginning 0) (match-end 0))))
|
(let ((ov (make-overlay (match-beginning 0) (match-end 0))))
|
||||||
(push ov overlays)
|
(push ov overlays)
|
||||||
(overlay-put ov 'window (selected-window))
|
(overlay-put ov 'window (selected-window))
|
||||||
(overlay-put ov 'face 'avy-goto-char-timer-face)))))))
|
(overlay-put ov 'face 'avy-goto-char-timer-face)))))))))
|
||||||
str)
|
str)
|
||||||
(dolist (ov overlays)
|
(dolist (ov overlays)
|
||||||
(delete-overlay ov)))))
|
(delete-overlay ov)))))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user