diff --git a/magit.el b/magit.el index 222efcbf..f1f96e5d 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))