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:
parent
55afcba382
commit
b59f9d9841
1 changed files with 1 additions and 1 deletions
2
magit.el
2
magit.el
|
@ -366,7 +366,7 @@ pushed.
|
||||||
(hunk-beg nil))
|
(hunk-beg nil))
|
||||||
(while (not (eobp))
|
(while (not (eobp))
|
||||||
(let ((prefix (buffer-substring-no-properties
|
(let ((prefix (buffer-substring-no-properties
|
||||||
(point) (+ (point) n-files))))
|
(point) (min (+ (point) n-files) (point-max)))))
|
||||||
(cond ((looking-at "^diff")
|
(cond ((looking-at "^diff")
|
||||||
(magit-wash-diff-propertize-diff head-seq head-beg head-end)
|
(magit-wash-diff-propertize-diff head-seq head-beg head-end)
|
||||||
(magit-wash-diff-propertize-hunk head-seq hunk-seq
|
(magit-wash-diff-propertize-hunk head-seq hunk-seq
|
||||||
|
|
Loading…
Reference in a new issue