From f0acf3e883971f5094f598ee5cd07ed82c9ac58e Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Fri, 9 Aug 2019 00:32:42 -0400 Subject: [PATCH] Show dirty submodules in Unstaged section Closes https://github.com/tpope/vim-fugitive/issues/1204 --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] !~# '[ !#]'