branch: master
commit 793a5e22a7ea89c4c6d96422609cdb2b3121dd3d
Author: Oleh Krehel <ohwoeo...@gmail.com>
Commit: Oleh Krehel <ohwoeo...@gmail.com>

    avy.el (avy-action-teleport): Add save-excursion
---
 avy.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/avy.el b/avy.el
index 108affd..4fcbf96 100644
--- a/avy.el
+++ b/avy.el
@@ -687,7 +687,8 @@ Set `avy-style' according to COMMMAND as well."
   (select-window
    (cdr
     (ring-ref avy-ring 0)))
-  (yank)
+  (save-excursion
+    (yank))
   t)
 
 (declare-function flyspell-correct-word-before-point "flyspell")

Reply via email to