Replace goto-line with a more suitable combination of goto-char and forward-line.
Signed-off-by: Ramkumar Ramachandra <[email protected]> --- magit.el | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/magit.el b/magit.el index 2106969..8768e22 100644 --- a/magit.el +++ b/magit.el @@ -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)) -- 1.7.1
