From 866ecfff4ed6ab0c92aadca462cf2b93d414e4f1 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 29 Oct 2020 19:26:47 -0400 Subject: [PATCH] Enable Help: header This change was inadvertantly omitted from d2abfca08f0ed3e617b7326a3bdad0624bfe1553. References https://github.com/tpope/vim-fugitive/issues/1513 --- autoload/fugitive.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 7edec5d..cd78697 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -1941,6 +1941,10 @@ function! fugitive#BufReadStatus() abort if empty(s:Tree()) call s:AddHeader('Bare', 'yes') endif + if get(FugitiveConfigGetAll('advice.statusHints', config), 0, 'true') !~# '^\%(false\|no|off\|0\|\)$' + call s:AddHeader('Help', 'g?') + endif + call s:AddSection('Rebasing ' . rebasing_head, rebasing) call s:AddSection('Untracked', untracked) call s:AddSection('Unstaged', unstaged)