mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-09 12:03:47 -05:00
Work around hostile ftplugin/man.vim
References: https://github.com/neovim/neovim/issues/15487
This commit is contained in:
@@ -2961,6 +2961,9 @@ function! s:TempReadPost(file) abort
|
|||||||
call fugitive#MapJumps()
|
call fugitive#MapJumps()
|
||||||
endif
|
endif
|
||||||
if has_key(dict, 'filetype')
|
if has_key(dict, 'filetype')
|
||||||
|
if dict.filetype ==# 'man' && has('nvim')
|
||||||
|
let b:man_sect = matchstr(getline(1), '^\w\+(\zs\d\+\ze)')
|
||||||
|
endif
|
||||||
let &l:filetype = dict.filetype
|
let &l:filetype = dict.filetype
|
||||||
endif
|
endif
|
||||||
setlocal foldmarker=<<<<<<<<,>>>>>>>>
|
setlocal foldmarker=<<<<<<<<,>>>>>>>>
|
||||||
|
|||||||
Reference in New Issue
Block a user