summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gitweb/gitweb.css4
-rwxr-xr-xgitweb/gitweb.perl2
2 files changed, 5 insertions, 1 deletions
diff --git a/gitweb/gitweb.css b/gitweb/gitweb.css
index 4821022535..5eaa24fd24 100644
--- a/gitweb/gitweb.css
+++ b/gitweb/gitweb.css
@@ -285,6 +285,10 @@ div.diff.chunk_header {
color: #990099;
}
+div.diff.incomplete {
+ color: #cccccc;
+}
+
div.diff_info {
font-family: monospace;
color: #000099;
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 9367685734..fe9b9ee87a 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -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";