From d4c263386f6f8b62a906a9f1a4e9fee290012520 Mon Sep 17 00:00:00 2001 From: Marius Vollmer Date: Tue, 9 Sep 2008 01:05:41 +0300 Subject: [PATCH] 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. --- magit.el | 3 --- 1 file changed, 3 deletions(-) diff --git a/magit.el b/magit.el index e055a0ed..7f90655b 100644 --- a/magit.el +++ b/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))))