gitk: Fix bug where the last few commits would sometimes not be visible
[gitweb.git] / 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)
     }
 }