Guard against empty filename checking for conflicts

Closes https://github.com/tpope/vim-fugitive/issues/1287
This commit is contained in:
Tim Pope 2019-07-13 07:45:30 -04:00
parent 0c259e3016
commit 4da9fb8f43

View File

@ -3995,7 +3995,7 @@ function! s:CompareAge(mine, theirs) abort
endfunction
function! s:IsConflicted() abort
return !empty(s:TreeChomp('ls-files', '--unmerged', '--', expand('%:p')))
return len(@%) && !empty(s:ChompDefault('', 'ls-files', '--unmerged', '--', expand('%:p')))
endfunction
function! s:Diff(autodir, keepfocus, mods, ...) abort