Skip to content

Commit

Permalink
Fix a bug when previewing the last change at a maxed out undolevel.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjl committed Nov 10, 2010
1 parent a98989b commit 5cd1813
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/gundo.vim
Expand Up @@ -419,7 +419,7 @@ def _goto_window_for_buffer_name(bn):
def _undo_to(n):
n = int(n)
if n == 0:
vim.command('silent earlier %s' % vim.eval('&undolevels'))
vim.command('silent earlier %s' % (int(vim.eval('&undolevels')) + 1))
else:
vim.command('silent undo %d' % n)

Expand Down

0 comments on commit 5cd1813

Please sign in to comment.