From 06e34204af04643d96d30132de6ba9066368de15 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Fri, 11 Oct 2019 17:21:16 -0400 Subject: [PATCH] Fix error message on blank buffer with no Git dir --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index c063414..2646581 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -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