Add foldlevel to fugitive_diff_restore

This commit is contained in:
Alejandro Exojo
2013-02-15 10:31:54 +01:00
parent 6462bdb4b9
commit a27b899a36

View File

@@ -1356,6 +1356,7 @@ function! s:diffthis()
let w:fugitive_diff_restore .= &l:wrap ? ' wrap' : ' nowrap' let w:fugitive_diff_restore .= &l:wrap ? ' wrap' : ' nowrap'
let w:fugitive_diff_restore .= ' foldmethod=' . &l:foldmethod let w:fugitive_diff_restore .= ' foldmethod=' . &l:foldmethod
let w:fugitive_diff_restore .= ' foldcolumn=' . &l:foldcolumn let w:fugitive_diff_restore .= ' foldcolumn=' . &l:foldcolumn
let w:fugitive_diff_restore .= ' foldlevel=' . &l:foldlevel
if has('cursorbind') if has('cursorbind')
let w:fugitive_diff_restore .= (&l:cursorbind ? ' ' : ' no') . 'cursorbind' let w:fugitive_diff_restore .= (&l:cursorbind ? ' ' : ' no') . 'cursorbind'
endif endif