From: Paul Mackerras Date: Sat, 6 Oct 2007 10:17:59 +0000 (+1000) Subject: gitk: Fix bug where the last few commits would sometimes not be visible X-Git-Tag: v1.5.4-rc0~318^2~1^2~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=308ff3d59df853a21d4e218473974311fb7b3320;p=git.git 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 --- diff --git a/gitk b/gitk index 6f0af3734..3f7f77777 100755 --- 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) } }