avy.el (avy-goto-line): push mark for numeric line

Fixes #74
This commit is contained in:
Oleh Krehel 2015-07-01 14:32:04 +02:00
parent 8c8ad97de1
commit eb28aeb40e

1
avy.el
View File

@ -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)))))))