From b59f9d9841b65504f8e73ef346fe17f20b691bfa Mon Sep 17 00:00:00 2001 From: Marius Vollmer Date: Tue, 12 Aug 2008 00:28:28 +0300 Subject: [PATCH] More robust diff washing. * magit.el (magit-wash-diff): Don't try to get the prefix from non-accessible parts of the buffer. --- magit.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/magit.el b/magit.el index c8414244..a3730097 100644 --- a/magit.el +++ b/magit.el @@ -366,7 +366,7 @@ pushed. (hunk-beg nil)) (while (not (eobp)) (let ((prefix (buffer-substring-no-properties - (point) (+ (point) n-files)))) + (point) (min (+ (point) n-files) (point-max))))) (cond ((looking-at "^diff") (magit-wash-diff-propertize-diff head-seq head-beg head-end) (magit-wash-diff-propertize-hunk head-seq hunk-seq