branch: master
commit 1e94459628d1bdeb6a44be5aa9b749e09812628a
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>

    avy-jump.el (avi--goto): Push mark before moving
    
    Fixes #41
---
 avy-jump.el |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/avy-jump.el b/avy-jump.el
index ed0554a..7443e3d 100644
--- a/avy-jump.el
+++ b/avy-jump.el
@@ -63,6 +63,7 @@ POS is either a position or (BEG . END)."
     (let ((pt (car x)))
       (when (consp pt)
         (setq pt (car pt)))
+      (unless (= pt (point)) (push-mark))
       (goto-char pt))))
 
 (defun avi--process (candidates overlay-fn)

Reply via email to