More robust diff washing.

* magit.el (magit-wash-diff): Don't try to get the prefix from
non-accessible parts of the buffer.
This commit is contained in:
Marius Vollmer 2008-08-12 00:28:28 +03:00
parent 55afcba382
commit b59f9d9841

View file

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