motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit ec918b9a79512e82e00901d93bfb6d5f57bf56f0 (tree)
parent ff0eeac045d7a25d91c4bccd666897eff5b86fc8
Author: Tim Pope <code@tpope.net>
Date:   Thu,  5 Sep 2019 15:46:27 -0400

Support blank buffers

Closes https://github.com/tpope/vim-fugitive/issues/1000

Diffstat:
Mplugin/fugitive.vim | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 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