mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-08 11:33: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()
|
||||
endif
|
||||
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
|
||||
endif
|
||||
setlocal foldmarker=<<<<<<<<,>>>>>>>>
|
||||
|
||||
Reference in New Issue
Block a user