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
16
magit.el
16
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))))
|
||||
|
|
Loading…
Reference in a new issue