From ec918b9a79512e82e00901d93bfb6d5f57bf56f0 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 5 Sep 2019 15:46:27 -0400 Subject: [PATCH] Support blank buffers Closes https://github.com/tpope/vim-fugitive/issues/1000 --- plugin/fugitive.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 539f5c5..56a039d 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -11,8 +11,7 @@ let g:loaded_fugitive = 1 function! FugitiveGitDir(...) abort if !a:0 || type(a:1) == type(0) && a:1 < 0 let dir = get(b:, 'git_dir', '') - if empty(dir) && get(g:, 'fugitive_blank_buffer_2019_alpha') && strftime('%Y') == 2019 && - \ (empty(bufname('')) || &buftype =~# '^\%(nofile\|acwrite\|quickfix\|prompt\)$') + if empty(dir) && (empty(bufname('')) || &buftype =~# '^\%(nofile\|acwrite\|quickfix\|prompt\)$') return FugitiveExtractGitDir(getcwd()) endif return dir