Code

gitk: Fix bug where the last few commits would sometimes not be visible
authorPaul Mackerras <paulus@samba.org>
Sat, 6 Oct 2007 10:17:59 +0000 (20:17 +1000)
committerPaul Mackerras <paulus@samba.org>
Sat, 6 Oct 2007 10:17:59 +0000 (20:17 +1000)
We weren't calling showstuff for the last few commits under some
circumstances, causing the scrolling region not to be extended right
to the end of the graph.  This fixes it.

Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk

diff --git a/gitk b/gitk
index 6f0af373428f28bfe8c54dddb03c5b0c2cf8b76a..3f7f77777def2f936ddacd1e0fc122c5121c16f2 100755 (executable)
--- a/gitk
+++ b/gitk
@@ -2758,7 +2758,7 @@ proc layoutmore {} {
     global uparrowlen downarrowlen mingaplen curview
 
     set show $commitidx($curview)
-    if {$show > $numcommits} {
+    if {$show > $numcommits || $viewcomplete($curview)} {
        showstuff $show $viewcomplete($curview)
     }
 }