1
0
mirror of https://github.com/git/git.git synced 2024-11-18 04:04:11 +01:00

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>
This commit is contained in:
Paul Mackerras 2007-10-06 20:17:59 +10:00
parent 9a7558f348
commit 308ff3d59d

2
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)
}
}