avy.el (avy-action-kill-move): Adjust for avy-goto-line

Re #191
This commit is contained in:
Oleh Krehel 2017-12-10 19:55:28 +01:00
parent 1b9f061d27
commit dee0284f3f

5
avy.el
View File

@ -662,9 +662,10 @@ Set `avy-style' according to COMMMAND as well."
(defun avy-action-kill-move (pt)
"Kill sexp at PT and move there."
(goto-char pt)
(forward-sexp)
(avy-forward-item)
(kill-region pt (point))
(message "Killed: %s" (current-kill 0)))
(message "Killed: %s" (current-kill 0))
(point))
(defun avy-action-kill-stay (pt)
"Kill sexp at PT."