mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-15 23:03:51 -05:00
Restore 'foldenable' setting when diff ends
After finishing a diff session, the foldenable settings should be restored to it's previous value.
This commit is contained in:
committed by
Tim Pope
parent
cad80493f4
commit
3e3a899cf1
@@ -1433,6 +1433,7 @@ function! s:diff_restore() abort
|
|||||||
\ . ' foldmethod=' . &l:foldmethod
|
\ . ' foldmethod=' . &l:foldmethod
|
||||||
\ . ' foldcolumn=' . &l:foldcolumn
|
\ . ' foldcolumn=' . &l:foldcolumn
|
||||||
\ . ' foldlevel=' . &l:foldlevel
|
\ . ' foldlevel=' . &l:foldlevel
|
||||||
|
\ . (&l:foldenable ? ' foldenable' : ' nofoldenable')
|
||||||
if has('cursorbind')
|
if has('cursorbind')
|
||||||
let restore .= (&l:cursorbind ? ' ' : ' no') . 'cursorbind'
|
let restore .= (&l:cursorbind ? ' ' : ' no') . 'cursorbind'
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user