mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-08 11:33:47 -05:00
Fix statusline indicator on older Vim
Vim was clearing the statusline due to an error, despite the fact the exception was caught and ignored.
This commit is contained in:
@@ -327,6 +327,9 @@ function! FugitiveIsGitDir(...) abort
|
||||
endfunction
|
||||
|
||||
function! s:ReadFile(path, line_count) abort
|
||||
if v:version < 800 && !filereadable(a:path)
|
||||
return []
|
||||
endif
|
||||
try
|
||||
return readfile(a:path, 'b', a:line_count)
|
||||
catch
|
||||
|
||||
Reference in New Issue
Block a user