Skip to content

Commit

Permalink
Merge pull request #7 from dsummersl/pr-27
Browse files Browse the repository at this point in the history
Pr 27
  • Loading branch information
simnalamburt committed Mar 11, 2015
2 parents df9525e + 0bed132 commit 45b8c09
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autoload/gundo.py
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,8 @@ def GundoRevert():
_undo_to(target_n)

vim.command('GundoRenderGraph')
_goto_window_for_buffer(back)
if int(vim.eval('g:gundo_return_on_revert')):
_goto_window_for_buffer(back)

if int(vim.eval('g:gundo_close_on_revert')):
vim.command('GundoToggle')
Expand Down
3 changes: 3 additions & 0 deletions autoload/gundo.vim
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ endif"}}}
if !exists('g:gundo_inline_undo')"{{{
let g:gundo_inline_undo = 1
endif"}}}
if !exists("g:gundo_return_on_revert")"{{{
let g:gundo_return_on_revert = 1
endif"}}}

let s:has_supported_python = 0
if g:gundo_prefer_python3 && has('python3')"{{{
Expand Down
9 changes: 9 additions & 0 deletions doc/gundo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ CONTENTS *Gundo-contents*
3.12 gundo_playback_delay ...... |gundo_playback_delay|
3.13 gundo_mirror_graph ........ |gundo_mirror_graph|
3.14 gundo_inline_undo ......... |gundo_inline_undo|
3.15 gundo_return_on_revert .... |gundo_return_on_revert|
4. License ......................... |GundoLicense|
5. Bugs ............................ |GundoBugs|
6. Contributing .................... |GundoContributing|
Expand Down Expand Up @@ -255,6 +256,13 @@ provides a quick summary of the diff w/o having to navigate.

Default: 1 (inline graph)

------------------------------------------------------------------------------
3.15 g:gundo_return_on_revert *gundo_return_on_revert*

Set this to 0 to keep focus in the Gundo window after a revert.

Default: 1

==============================================================================
4. License *GundoLicense*

Expand All @@ -281,6 +289,7 @@ GitHub: https://github.com/sjl/gundo.vim/
v3.X - WIP
* Add one line diff in __Gundo__ window.
* Adds g:gundo_mirror_graph setting.
* Adds g:gundo_return_on_revert setting.
* Adds ability to toggle help on/off in __Gundo__ window.
* Adds J and K commands (navigate between written undos)
* Adds /, n and N commands (search undos)
Expand Down

0 comments on commit 45b8c09

Please sign in to comment.