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:
parent
dc8cc4cb95
commit
c33f87fe71
1 changed files with 2 additions and 1 deletions
3
magit.el
3
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))
|
||||
|
|
Loading…
Reference in a new issue