Show dirty submodules in Unstaged section

Closes https://github.com/tpope/vim-fugitive/issues/1204
This commit is contained in:
Tim Pope 2019-08-09 00:32:42 -04:00
parent a09e49d2bb
commit f0acf3e883

View File

@ -1690,7 +1690,7 @@ function! fugitive#BufReadStatus() abort
call add(staged, {'type': 'File', 'status': line[0], 'filename': files})
let b:fugitive_status['Staged'][files] = line[0]
endif
if line[1] =~# '?'
if line[0:1] ==# '??'
call add(untracked, {'type': 'File', 'status': line[1], 'filename': files})
let b:fugitive_status['Unstaged'][files] = line[1]
elseif line[1] !~# '[ !#]'