Fix movement bounds in the graph pane.
This commit is contained in:
parent
80ef17d623
commit
95d53c5b3f
@ -23,6 +23,10 @@ endif
|
|||||||
|
|
||||||
"{{{ Movement Mappings
|
"{{{ Movement Mappings
|
||||||
function! s:GundoMoveUp()
|
function! s:GundoMoveUp()
|
||||||
|
if line('.') - 2 <= 4
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
|
||||||
call cursor(line('.') - 2, 0)
|
call cursor(line('.') - 2, 0)
|
||||||
|
|
||||||
let line = getline('.')
|
let line = getline('.')
|
||||||
@ -40,6 +44,10 @@ function! s:GundoMoveUp()
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:GundoMoveDown()
|
function! s:GundoMoveDown()
|
||||||
|
if line('.') + 2 >= line('$')
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
|
||||||
call cursor(line('.') + 2, 0)
|
call cursor(line('.') + 2, 0)
|
||||||
|
|
||||||
let line = getline('.')
|
let line = getline('.')
|
||||||
|
Loading…
Reference in New Issue
Block a user