Skip to content

Commit

Permalink
Don't automatically enable syntax folding in status buffer
Browse files Browse the repository at this point in the history
Closes #1565

References #1317
  • Loading branch information
tpope committed Mar 20, 2021
1 parent 4e85dd3 commit 7bee111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/fugitive.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down

0 comments on commit 7bee111

Please sign in to comment.