]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Feed.pm
html/index: fix broken prev/next pagination on short histories
[public-inbox.git] / lib / PublicInbox / Feed.pm
index 0f0528c91dbefea3b0d02d44cb9d3f666ec50f40..4671323cc1bd74b48a07c905b9065d889d28bcc9 100644 (file)
@@ -182,6 +182,10 @@ sub each_recent_blob {
                                last;
                        }
                }
+       } elsif ($reverse) {
+               unshift @commits, undef
+       } else {
+               push @commits, undef;
        }
 
        close $log; # we may EPIPE here