branch: master
commit 1b9f061d270abf3dfd76446e0eaf020521c79e0c
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
avy.el (avy-action-kill-stay): Adjust for avy-goto-line
Re #191
---
avy.el | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/avy.el b/avy.el
index dbacdca..88bfc3d 100644
--- a/avy.el
+++ b/avy.el
@@ -669,11 +669,12 @@ Set `avy-style' according to COMMMAND as well."
(defun avy-action-kill-stay (pt)
"Kill sexp at PT."
(save-excursion
- (goto-char pt)
- (forward-sexp)
- (kill-region pt (point))
- (just-one-space))
- (message "Killed: %s" (current-kill 0)))
+ (goto-char pt)
+ (avy-forward-item)
+ (kill-region pt (point))
+ (just-one-space))
+ (message "Killed: %s" (current-kill 0))
+ t)
(defun avy-action-teleport (pt)
"Kill sexp starting on PT and yank into the current location."