commit cbb7c3e89026472dfbc5440d78ce85975423bedd (tree)
parent d4c615c427e5998c784032d460919f7f2f12ebaf
Author: Will Gray <graywh@gmail.com>
Date: Tue, 5 Mar 2013 15:03:12 -0600
Add foldenable to fugitive_diff_restore
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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