about summary refs log tree commit homepage
path: root/lib/PublicInbox/WwwCoderepo.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/WwwCoderepo.pm')
-rw-r--r--lib/PublicInbox/WwwCoderepo.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/WwwCoderepo.pm b/lib/PublicInbox/WwwCoderepo.pm
index d1354af5..3814f719 100644
--- a/lib/PublicInbox/WwwCoderepo.pm
+++ b/lib/PublicInbox/WwwCoderepo.pm
@@ -273,7 +273,7 @@ sub zflush { $_[0]->SUPER::zflush('</pre>', $_[0]->_html_end) }
 # called by GzipFilter->write or GetlineResponse->getline
 sub translate {
         my $ctx = shift;
-        my $rec = $_[0] // return zflush($ctx); # getline
+        $_[0] // return zflush($ctx); # getline caller
         my @out;
         my $fbuf = delete($ctx->{fbuf}) // shift;
         $fbuf .= shift while @_;
@@ -290,8 +290,8 @@ sub translate {
                                                 $snap_pfx, @snap_fmt);
                 }
         }
-        $ctx->{fbuf} = $fbuf;
-        $ctx->SUPER::translate(@out);
+        $ctx->{fbuf} = $fbuf; # may be incomplete
+        @out ? $ctx->SUPER::translate(@out) : ''; # not EOF, yet
 }
 
 sub _refs_parse_hdr { # {parse_hdr} for Qspawn