avy.el (avy-goto-char-timer): Obey avy-background for initial search

Fixes #259
This commit is contained in:
Oleh Krehel 2019-01-17 17:47:18 +01:00
parent 002b8f3451
commit e9f4d85b88

5
avy.el
View File

@ -1911,6 +1911,8 @@ Otherwise, the whole regex is highlighted."
char break overlays regex)
(unwind-protect
(progn
(avy--make-backgrounds
(avy-window-list))
(while (and (not break)
(setq char
(read-char (format "%d char%s: "
@ -1972,7 +1974,8 @@ Otherwise, the whole regex is highlighted."
(overlay-get ov 'window)))
overlays)))
(dolist (ov overlays)
(delete-overlay ov)))))
(delete-overlay ov))
(avy--done))))
;;;###autoload
(defun avy-goto-char-timer (&optional arg)