Don't recalculate while typing

This commit is contained in:
Lars Tveito 2020-03-08 20:48:58 +01:00
parent 872f24cb26
commit 9af4fbe635

View File

@ -183,6 +183,7 @@ If `focus-mode' is enabled, this function is added to
`post-command-hook' and `window-scroll-functions'. The function
can be called with an arbitrary number of ARGS to support being
called from `window-scroll-functions'."
(while-no-input
(with-current-buffer focus-buffer
(let* ((bg (face-background 'default))
(window-bounds (focus-window-bounds))
@ -200,7 +201,7 @@ called from `window-scroll-functions'."
(move-overlay focus-focused-overlay low high)))
(setq focus-last-background bg)
(setq focus-last-window-bounds window-bounds)
(setq focus-last-bounds bounds))))
(setq focus-last-bounds bounds)))))
(defun focus-make-focused-overlay ()
(let ((o (make-overlay (point-min) (point-max))))