Fix movement bounds in the graph pane.

This commit is contained in:
Steve Losh 2010-10-12 18:44:51 -04:00
parent 80ef17d623
commit 95d53c5b3f

View File

@ -23,6 +23,10 @@ endif
"{{{ Movement Mappings
function! s:GundoMoveUp()
if line('.') - 2 <= 4
return
endif
call cursor(line('.') - 2, 0)
let line = getline('.')
@ -40,6 +44,10 @@ function! s:GundoMoveUp()
endfunction
function! s:GundoMoveDown()
if line('.') + 2 >= line('$')
return
endif
call cursor(line('.') + 2, 0)
let line = getline('.')