mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 21:33:53 -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())
|
if !empty(a:0 ? s:Dir(a:1) : s:Dir())
|
||||||
return ''
|
return ''
|
||||||
elseif empty(bufname(''))
|
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
|
else
|
||||||
return 'return ' . string('echoerr "fugitive: file does not belong to a Git repository"')
|
return 'return ' . string('echoerr "fugitive: file does not belong to a Git repository"')
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user