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:
Marius Vollmer 2008-09-09 01:05:41 +03:00
parent e4031528aa
commit d4c263386f

View file

@ -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))))