From 07e7e2173aee81d6922fcf9860d4cff18f151dd2 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Thu, 16 Jul 2026 11:59:01 -1000 Subject: Close the layout on stat-only diffs The stat-only diff path returned before the closing call, so the content wrapper, footer and closing tags were never emitted. --- source/ui-diff.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source') diff --git a/source/ui-diff.c b/source/ui-diff.c index 04bbecc..0480232 100644 --- a/source/ui-diff.c +++ b/source/ui-diff.c @@ -487,8 +487,11 @@ void cgit_print_diff(const char *new_rev, const char *old_rev, cgit_print_diffstat(old_rev_oid, new_rev_oid, prefix); - if (difftype == DIFF_STATONLY) + if (difftype == DIFF_STATONLY) { + if (show_ctrls) + cgit_print_layout_end(); return; + } if (use_ssdiff) { html(""); -- cgit v2.8.0