diff --git a/magit.el b/magit.el index 1cef1378..34d5f331 100644 --- a/magit.el +++ b/magit.el @@ -491,14 +491,16 @@ Please see the manual for a complete description of Magit. (let ((seq 0)) (while (not (eobp)) (let ((filename (buffer-substring (point) (line-end-position)))) - (magit-mark-subsection (line-beginning-position) - (+ (line-end-position) 1) - seq 1) - (magit-put-line-property 'face '(:foreground "red")) - (magit-put-line-property 'magit-info (list 'other-file filename))) - (setq seq (+ seq 1)) + (cond ((not (string= filename "")) + (magit-mark-subsection (line-beginning-position) + (line-beginning-position 2) + seq 1) + (magit-put-line-property 'face '(:foreground "red")) + (magit-put-line-property 'magit-info + (list 'other-file filename)) + (setq seq (+ seq 1))))) (forward-line) - (beginning-of-line)))) + (beginning-of-line)))) (defun magit-wash-diff-propertize-diff (head-seq head-beg head-end) (let ((head-end (or head-end (point))))