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) (defun avy-action-goto (pt)
"Goto PT." "Goto PT."
(let ((frame (window-frame (selected-window)))) (let ((frame (window-frame (selected-window))))
(select-frame-set-input-focus frame) (unless (equal frame (selected-frame))
(raise-frame frame) (select-frame-set-input-focus frame)
(raise-frame frame))
(goto-char pt))) (goto-char pt)))
(defun avy-forward-item () (defun avy-forward-item ()