mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-10 04:23:46 -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
|
endfunction
|
||||||
|
|
||||||
function! s:ReadFile(path, line_count) abort
|
function! s:ReadFile(path, line_count) abort
|
||||||
|
if v:version < 800 && !filereadable(a:path)
|
||||||
|
return []
|
||||||
|
endif
|
||||||
try
|
try
|
||||||
return readfile(a:path, 'b', a:line_count)
|
return readfile(a:path, 'b', a:line_count)
|
||||||
catch
|
catch
|
||||||
|
|||||||
Reference in New Issue
Block a user