summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleh Krehel <ohwoeowho@gmail.com>2017-12-10 20:02:40 +0100
committerOleh Krehel <ohwoeowho@gmail.com>2017-12-10 20:06:34 +0100
commit78392e670ec12d93e0e169a7fabcd024664e5abe (patch)
treee89be365f9c8dde22d201cb87a5d4b9d9095a0fb
parenta25b255b2544f9a8fbb37cd7b7e8ce61186d4639 (diff)
avy.el (avy-action-teleport): Adjust for avy-goto-line
Re #191
-rw-r--r--avy.el9
1 files changed, 8 insertions, 1 deletions
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")