mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-15 06:43: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
|
||||
\ . ' foldcolumn=' . &l:foldcolumn
|
||||
\ . ' foldlevel=' . &l:foldlevel
|
||||
\ . (&l:foldenable ? ' foldenable' : ' nofoldenable')
|
||||
if has('cursorbind')
|
||||
let restore .= (&l:cursorbind ? ' ' : ' no') . 'cursorbind'
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user