summaryrefslogtreecommitdiff
path: root/contrib/emacs/git-blame.el
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/emacs/git-blame.el')
-rw-r--r--contrib/emacs/git-blame.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/emacs/git-blame.el b/contrib/emacs/git-blame.el
index d351cfb6e7..3b5d5afce5 100644
--- a/contrib/emacs/git-blame.el
+++ b/contrib/emacs/git-blame.el
@@ -389,7 +389,8 @@ See also function `git-blame-mode'."
(set-buffer git-blame-file)
(let ((inhibit-point-motion-hooks t)
(inhibit-modification-hooks t))
- (goto-line start-line)
+ (goto-char (point-min))
+ (forward-line (1- start-line))
(let* ((start (point))
(end (progn (forward-line num-lines) (point)))
(ovl (make-overlay start end))