Make diff washing work again in commit buffers.
* magit.el (magit-wash-diffs, magit-wash-log, magit-wash-commit): Don't go to point-min, it's redundant for magit-insert-section now and harmful when used in other contexts.
This commit is contained in:
parent
e4031528aa
commit
d4c263386f
1 changed files with 0 additions and 3 deletions
3
magit.el
3
magit.el
|
@ -839,7 +839,6 @@ Please see the manual for a complete description of Magit.
|
|||
nil)))
|
||||
|
||||
(defun magit-wash-diffs ()
|
||||
(goto-char (point-min))
|
||||
(magit-wash-sequence #'magit-wash-diff-or-other-file))
|
||||
|
||||
(defun magit-wash-diff-or-other-file ()
|
||||
|
@ -1014,13 +1013,11 @@ Please see the manual for a complete description of Magit.
|
|||
t)
|
||||
|
||||
(defun magit-wash-log ()
|
||||
(goto-char (point-min))
|
||||
(magit-wash-sequence #'magit-wash-log-line))
|
||||
|
||||
(defvar magit-currently-shown-commit nil)
|
||||
|
||||
(defun magit-wash-commit ()
|
||||
(goto-char (point-min))
|
||||
(cond ((search-forward-regexp "^diff" nil t)
|
||||
(goto-char (match-beginning 0))
|
||||
(magit-wash-diffs))))
|
||||
|
|
Loading…
Reference in a new issue