From 6dc4627f73aecdbe42cf2a48f3c383a567a02861 Mon Sep 17 00:00:00 2001 From: Steve Losh Date: Sun, 17 Oct 2010 15:02:33 -0400 Subject: [PATCH] Fix a pile of bugs by showing the root node in the graph. --- doc/gundo.txt | 1 + plugin/gundo.vim | 129 +++++++++++++++++++++++++++++++++-------------- 2 files changed, 92 insertions(+), 38 deletions(-) diff --git a/doc/gundo.txt b/doc/gundo.txt index 0bc9734..987cba0 100644 --- a/doc/gundo.txt +++ b/doc/gundo.txt @@ -60,6 +60,7 @@ look something like this: > | |/ | | | o [1] 4 hours ago | | | | | | + | o [0] Original | | +-----------------------------------+ | | --- 3 2010-10-12 06:27:35 PM | | | +++ 5 2010-10-12 07:38:37 PM | | diff --git a/plugin/gundo.vim b/plugin/gundo.vim index 56f5f74..2f06df3 100644 --- a/plugin/gundo.vim +++ b/plugin/gundo.vim @@ -37,8 +37,6 @@ function! s:GundoMove(direction) " Bound the movement to the graph. if target_n <= 4 call cursor(5, 0) - elseif target_n >= line('$') - call cursor(line('$') - 1, 0) else call cursor(target_n, 0) endif @@ -81,7 +79,6 @@ function! s:GundoOpenBuffer() nnoremap