Add option to close gundo on revert.
This commit is contained in:
parent
e7a1ecf244
commit
7aaeebd88b
@ -66,6 +66,9 @@ endif"}}}
|
|||||||
if !exists("g:gundo_map_move_newer")"{{{
|
if !exists("g:gundo_map_move_newer")"{{{
|
||||||
let g:gundo_map_move_newer = 'k'
|
let g:gundo_map_move_newer = 'k'
|
||||||
endif"}}}
|
endif"}}}
|
||||||
|
if !exists("g:gundo_close_on_revert")"{{{
|
||||||
|
let g:gundo_close_on_revert = 1
|
||||||
|
endif"}}}
|
||||||
|
|
||||||
"}}}
|
"}}}
|
||||||
|
|
||||||
@ -884,6 +887,9 @@ def GundoRevert():
|
|||||||
vim.command('GundoRenderGraph')
|
vim.command('GundoRenderGraph')
|
||||||
_goto_window_for_buffer(back)
|
_goto_window_for_buffer(back)
|
||||||
|
|
||||||
|
if int(vim.eval('g:gundo_close_on_revert')):
|
||||||
|
vim.command('GundoToggle')
|
||||||
|
|
||||||
GundoRevert()
|
GundoRevert()
|
||||||
ENDPYTHON
|
ENDPYTHON
|
||||||
endfunction"}}}
|
endfunction"}}}
|
||||||
|
Loading…
Reference in New Issue
Block a user