From cbb7c3e89026472dfbc5440d78ce85975423bedd Mon Sep 17 00:00:00 2001 From: Will Gray Date: Tue, 5 Mar 2013 15:03:12 -0600 Subject: [PATCH] Add foldenable to fugitive_diff_restore --- plugin/fugitive.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 53c2514..76f8aa6 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -1381,6 +1381,7 @@ function! s:diffthis() let w:fugitive_diff_restore .= ' foldmethod=' . &l:foldmethod let w:fugitive_diff_restore .= ' foldcolumn=' . &l:foldcolumn let w:fugitive_diff_restore .= ' foldlevel=' . &l:foldlevel + let w:fugitive_diff_restore .= &l:foldenable ? ' foldenable' : 'nofoldenable' if has('cursorbind') let w:fugitive_diff_restore .= (&l:cursorbind ? ' ' : ' no') . 'cursorbind' endif