summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleh Krehel <ohwoeowho@gmail.com>2017-12-30 11:18:40 +0100
committerOleh Krehel <ohwoeowho@gmail.com>2017-12-30 11:20:36 +0100
commit34d3531a3cd35ae6b9e8dbc37343c027504fdcb0 (patch)
treee916778ef7577af6dba464d8274b3cf05e94ccfd
parent93d4bd2c6763064f63e343eaec9107248a2d535c (diff)
avy.el (avy-action-goto): Remove lag
-rw-r--r--avy.el5
1 files 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 ()