]> code.delx.au - gnu-emacs-elpa/commitdiff
avy.el (avy-goto-line): push mark for numeric line
authorOleh Krehel <ohwoeowho@gmail.com>
Wed, 1 Jul 2015 12:32:04 +0000 (14:32 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Wed, 1 Jul 2015 12:32:04 +0000 (14:32 +0200)
Fixes #74

avy.el

diff --git a/avy.el b/avy.el
index 5a8b5ced0378f8cfe9917cd3d63035a284df941e..4498e04008ef59e8131c2687c684e9a5822fd1dc 100644 (file)
--- a/avy.el
+++ b/avy.el
@@ -863,6 +863,7 @@ The window scope is determined by `avy-all-windows' (ARG negates it)."
                (let ((line (read-from-minibuffer
                             "Goto line: " (string char))))
                  (when line
+                   (push-mark)
                    (goto-char (point-min))
                    (forward-line (1- (string-to-number line)))
                    (throw 'done 'exit)))))))