diff options
Diffstat (limited to 'source/ui-tree.c')
-rw-r--r--source/ui-tree.c4
1 file changed, 2 insertions, 2 deletions
diff --git a/source/ui-tree.c b/source/ui-tree.c
index 13a9787..1d8bb3d 100644
--- a/source/ui-tree.c
+++ b/source/ui-tree.c
@@ -113,7 +113,7 @@ static void print_text_buffer(const char *filename, char *buf, size_t size)
}
html("<td class='lines'><pre><code>");
- html_txt(buf);
+ html_blob_txt(buf, size);
html("</code></pre></td></tr></table>\n");
}
@@ -188,7 +188,7 @@ static bool print_object(const struct object_id *oid, const char *path,
return false;
}
// buffer_is_binary only sniffs the front of the blob, and a NUL past
- // that window would end the escaped text render early while the line
+ // that window would end a Lua filter's output early while the line
// number column still counts the whole file, so check the rest too.
is_binary = buffer_is_binary(buf, size) || memchr(buf, 0, size);