mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-09 12:03:47 -05:00
Add foldenable to fugitive_diff_restore
This commit is contained in:
@@ -1381,6 +1381,7 @@ function! s:diffthis()
|
|||||||
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
|
let w:fugitive_diff_restore .= ' foldlevel=' . &l:foldlevel
|
||||||
|
let w:fugitive_diff_restore .= &l:foldenable ? ' foldenable' : 'nofoldenable'
|
||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user