avy.el (avy-action-goto): Remove lag

This commit is contained in:
Oleh Krehel 2017-12-30 11:18:40 +01:00
parent 93d4bd2c67
commit 34d3531a3c

5
avy.el
View File

@ -628,8 +628,9 @@ Set `avy-style' according to COMMMAND as well."
(defun avy-action-goto (pt)
"Goto PT."
(let ((frame (window-frame (selected-window))))
(select-frame-set-input-focus frame)
(raise-frame frame)
(unless (equal frame (selected-frame))
(select-frame-set-input-focus frame)
(raise-frame frame))
(goto-char pt)))
(defun avy-forward-item ()