Add foldenable to fugitive_diff_restore

This commit is contained in:
Will Gray 2013-03-05 15:03:12 -06:00 committed by Tim Pope
parent d4c615c427
commit cbb7c3e890

View File

@ -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