From 7755f2e6275d5b3bbc115861d73b8d7207e05242 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 13:19:27 -0700 Subject: Open the tree's code cell in one place --- source/ui-tree.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/source/ui-tree.c b/source/ui-tree.c index 2801a78..1c29e30 100644 --- a/source/ui-tree.c +++ b/source/ui-tree.c @@ -100,17 +100,14 @@ static void print_text_buffer(const char *filename, char *buf, size_t size) html("\n"); } + html("
");
 	if (ctx.repo->source_filter) {
-		html("
");
 		cgit_open_filter(ctx.repo->source_filter, filename);
 		html_raw(buf, size);
 		cgit_close_filter(ctx.repo->source_filter);
-		html("
\n"); - return; + } else { + html_blob_txt(buf, size); } - - html("
");
-	html_blob_txt(buf, size);
 	html("
\n"); } -- cgit