mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 05:43:52 -05:00
Don't automatically enable syntax folding in status buffer
Closes https://github.com/tpope/vim-fugitive/issues/1565 References https://github.com/tpope/vim-fugitive/issues/1317
This commit is contained in:
@@ -2759,7 +2759,7 @@ function! s:StatusCommand(line1, line2, range, count, bang, mods, reg, arg, args
|
||||
try
|
||||
let mods = s:Mods(a:mods, &splitbelow ? 'botright' : 'topleft')
|
||||
let file = fugitive#Find(':', dir)
|
||||
let arg = ' +setl\ foldmethod=syntax\ foldlevel=1\|let\ w:fugitive_status=FugitiveGitDir() ' .
|
||||
let arg = ' +let\ w:fugitive_status=FugitiveGitDir() ' .
|
||||
\ s:fnameescape(file)
|
||||
for winnr in range(1, winnr('$'))
|
||||
if s:cpath(file, fnamemodify(bufname(winbufnr(winnr)), ':p'))
|
||||
|
||||
Reference in New Issue
Block a user