From 7bee1113e3d1810f4e8d26202eb0644b4d5fba7b Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Fri, 19 Mar 2021 20:23:39 -0400 Subject: [PATCH] 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 --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 11f99c7..a7aa671 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -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'))