Fix untracked files.
* magit.el (magit-wash-other-files): Skip empty lines.
This commit is contained in:
parent
4c9659405b
commit
5421e52262
1 changed files with 9 additions and 7 deletions
8
magit.el
8
magit.el
|
@ -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))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue