gitk: Fix bug where the last few commits would sometimes not be visible
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>
Paul Mackerras committed
Oct 6, 2007 at 20:17 UTC
308ff3d59df853a21d4e218473974311fb7b3320
1 file changed
+1
-1
gitk
+1
-1
@@ -2758,7 +2758,7 @@ proc layoutmore {} {
2758
global uparrowlen downarrowlen mingaplen curview
2759
2760
set show $commitidx($curview)
2761
- if {$show > $numcommits} {
2761
+ if {$show > $numcommits || $viewcomplete($curview)} {
2762
showstuff $show $viewcomplete($curview)
2763
}
2764
}