Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix movement bounds in the graph pane.

  • Loading branch information...
commit 95d53c5b3f9d7791ffbcf56dc7bace5560d3719d 1 parent 80ef17d
Steve Losh authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 plugin/gundo.vim
View
8 plugin/gundo.vim
@@ -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('.')
Please sign in to comment.
Something went wrong with that request. Please try again.