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 866ecfff4ed6ab0c92aadca462cf2b93d414e4f1 (tree)
parent e90478511d68cb8a0d8e5dea9c3629e7f0091f8c
Author: Tim Pope <code@tpope.net>
Date:   Thu, 29 Oct 2020 19:26:47 -0400

Enable Help: header

This change was inadvertantly omitted from
d2abfca08f0ed3e617b7326a3bdad0624bfe1553.

References https://github.com/tpope/vim-fugitive/issues/1513

Diffstat:
Mautoload/fugitive.vim | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

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