emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] master 78392e6 058/110: avy.el (avy-action-teleport): Adjust for


From: Oleh Krehel
Subject: [elpa] master 78392e6 058/110: avy.el (avy-action-teleport): Adjust for avy-goto-line
Date: Sat, 11 May 2019 10:15:44 -0400 (EDT)

branch: master
commit 78392e670ec12d93e0e169a7fabcd024664e5abe
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    avy.el (avy-action-teleport): Adjust for avy-goto-line
    
    Re #191
---
 avy.el | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/avy.el b/avy.el
index 417fb6f..9eb2652 100644
--- a/avy.el
+++ b/avy.el
@@ -676,12 +676,19 @@ Set `avy-style' according to COMMMAND as well."
     (kill-region pt (point))
     (just-one-space))
   (message "Killed: %s" (current-kill 0))
+  (select-window
+   (cdr
+    (ring-ref avy-ring 0)))
   t)
 
 (defun avy-action-teleport (pt)
   "Kill sexp starting on PT and yank into the current location."
   (avy-action-kill-stay pt)
-  (yank))
+  (select-window
+   (cdr
+    (ring-ref avy-ring 0)))
+  (yank)
+  t)
 
 (declare-function flyspell-correct-word-before-point "flyspell")
 



reply via email to

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