[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 34d3531 067/110: avy.el (avy-action-goto): Remove lag

From: Oleh Krehel
Subject: [elpa] master 34d3531 067/110: avy.el (avy-action-goto): Remove lag
Date: Sat, 11 May 2019 10:15:46 -0400 (EDT)

branch: master
commit 34d3531a3cd35ae6b9e8dbc37343c027504fdcb0
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    avy.el (avy-action-goto): Remove lag
 avy.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/avy.el b/avy.el
index 2613efc..7dbbb34 100644
--- a/avy.el
+++ b/avy.el
@@ -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 ()

reply via email to

[Prev in Thread] Current Thread [Next in Thread]