Fix help tag for g?

References: https://github.com/tpope/vim-fugitive/issues/2320
This commit is contained in:
Tim Pope
2024-07-12 13:08:01 -04:00
parent 174230d6a7
commit de42a732ee

View File

@@ -5191,7 +5191,7 @@ function! s:DoToggleHeadHeader(value) abort
endfunction
function! s:DoToggleHelpHeader(value) abort
exe 'help fugitive-map'
exe 'help fugitive-maps'
endfunction
function! s:DoStagePushHeader(value) abort
@@ -8045,8 +8045,8 @@ function! fugitive#MapJumps(...) abort
call s:Map('n', '.', ":<C-U> <C-R>=<SID>fnameescape(fugitive#Real(@%))<CR><Home>")
call s:Map('x', '.', ":<C-U> <C-R>=<SID>fnameescape(fugitive#Real(@%))<CR><Home>")
call s:Map('n', 'g?', ":<C-U>help fugitive-map<CR>", '<silent>')
call s:Map('n', '<F1>', ":<C-U>help fugitive-map<CR>", '<silent>')
call s:Map('n', 'g?', ":<C-U>help fugitive-maps<CR>", '<silent>')
call s:Map('n', '<F1>', ":<C-U>help fugitive-maps<CR>", '<silent>')
endif
let old_browsex = maparg('<Plug>NetrwBrowseX', 'n')