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 6b1d90251e94a0b381e3ebc7546da962e84331dd (tree)
parent bb4d1dd9a822d38b8b5a43dbbab25de639b504f5
Author: Tim Pope <code@tpope.net>
Date:   Fri, 10 Sep 2021 13:38:00 -0400

Support lazy initialization in statusline indicator

Resolves: https://github.com/tpope/vim-fugitive/issues/1834

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

diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim @@ -259,7 +259,7 @@ function! FugitivePath(...) abort endfunction function! FugitiveStatusline(...) abort - if empty(get(b:, 'git_dir', '')) + if empty(FugitiveGitDir()) return '' endif return fugitive#Statusline()