gitweb: Show information about incomplete lines in commitdiff
[gitweb.git] / gitweb / gitweb.perl
index 93676857344858ba84c1cbb82351d6c2ecf8a105..fe9b9ee87a94913955dbb18ef5fba007c25dbcfa 100755 (executable)
@@ -539,7 +539,7 @@ sub format_diff_line {
                $diff_class = " chunk_header";
        } elsif ($char eq "\\") {
                # skip errors (incomplete lines)
-               return "";
+               $diff_class = " incomplete";
        }
        $line = untabify($line);
        return "<div class=\"diff$diff_class\">" . esc_html($line) . "</div>\n";