From cf9df90322576e9fe6dd5715e71aac6a4014ca8c Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Thu, 16 Jul 2026 08:40:55 -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/ui-diff.c') 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 2.12.1