Don't set global foldlevel

Without this change, Fugitive will routinely overwrite the global foldlevel. It shouldn't.
This commit is contained in:
Mikkel Høgh 2013-09-14 14:37:03 +02:00 committed by Tim Pope
parent 61fac2f738
commit ea18a6a89b

View File

@ -663,7 +663,7 @@ function! s:Status() abort
try
Gpedit :
wincmd P
set foldmethod=syntax foldlevel=1
setlocal foldmethod=syntax foldlevel=1
nnoremap <buffer> <silent> q :<C-U>bdelete<CR>
catch /^fugitive:/
return 'echoerr v:errmsg'