Skip to content

Commit

Permalink
gitk: Fix bug where the last few commits would sometimes not be visible
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mackerras committed Oct 6, 2007
1 parent 9a7558f commit 308ff3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitk
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit 308ff3d

Please sign in to comment.