From c33f87fe71a8b3ebe36339c16edc92a3c3054c63 Mon Sep 17 00:00:00 2001 From: Ramkumar Ramachandra Date: Fri, 28 May 2010 17:10:31 +0200 Subject: [PATCH] Replace goto-line Replace goto-line with a more suitable combination of goto-char and forward-line. Signed-off-by: Ramkumar Ramachandra --- magit.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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))