# HG changeset patch # User Steve Losh # Date 1286923491 14400 # Node ID 8637cdbbba8a2f7098659dffce0d23293330d01f # Parent ce825e4ac9e07b5fc7a9936f798206d5e7c3a0f3 Fix movement bounds in the graph pane. diff -r ce825e4ac9e0 -r 8637cdbbba8a plugin/gundo.vim --- a/plugin/gundo.vim Tue Oct 12 18:36:02 2010 -0400 +++ b/plugin/gundo.vim Tue Oct 12 18:44:51 2010 -0400 @@ -23,6 +23,10 @@ "{{{ Movement Mappings function! s:GundoMoveUp() + if line('.') - 2 <= 4 + return + endif + call cursor(line('.') - 2, 0) let line = getline('.') @@ -40,6 +44,10 @@ endfunction function! s:GundoMoveDown() + if line('.') + 2 >= line('$') + return + endif + call cursor(line('.') + 2, 0) let line = getline('.')