Replace goto-line

Replace goto-line with a more suitable combination of goto-char and
forward-line.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
This commit is contained in:
Ramkumar Ramachandra 2010-05-28 17:10:31 +02:00 committed by Phil Jackson
parent dc8cc4cb95
commit c33f87fe71

View file

@ -3822,7 +3822,8 @@ With a non numeric prefix ARG, show all entries"
(let ((file (magit-diff-item-file (magit-hunk-item-diff item)))
(line (magit-hunk-item-target-line item)))
(find-file file)
(goto-line line)))
(goto-char (point-min))
(forward-line (1- line))))
((commit)
(magit-show-commit info)
(pop-to-buffer magit-commit-buffer-name))