mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-15 06:43:51 -05:00
Fix error message on blank buffer with no Git dir
This commit is contained in:
@@ -76,7 +76,7 @@ function! s:DirCheck(...) abort
|
||||
if !empty(a:0 ? s:Dir(a:1) : s:Dir())
|
||||
return ''
|
||||
elseif empty(bufname(''))
|
||||
return 'return ' . string('echoerr "fugitive: blank buffer unsupported (edit a file from a repository)"')
|
||||
return 'return ' . string('echoerr "fugitive: working directory does not belong to a Git repository"')
|
||||
else
|
||||
return 'return ' . string('echoerr "fugitive: file does not belong to a Git repository"')
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user