Fix untracked files.

* magit.el (magit-wash-other-files): Skip empty lines.
This commit is contained in:
Marius Vollmer 2008-08-20 01:05:21 +03:00
parent 4c9659405b
commit 5421e52262

View file

@ -491,12 +491,14 @@ Please see the manual for a complete description of Magit.
(let ((seq 0))
(while (not (eobp))
(let ((filename (buffer-substring (point) (line-end-position))))
(cond ((not (string= filename ""))
(magit-mark-subsection (line-beginning-position)
(+ (line-end-position) 1)
(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))
(magit-put-line-property 'magit-info
(list 'other-file filename))
(setq seq (+ seq 1)))))
(forward-line)
(beginning-of-line))))