diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index bb429ad..6d31c4b 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -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] !~# '[ !#]'