diff options
context:
space:
mode:
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
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.
Diffstat (limited to '')
-rw-r--r--source/ui-diff.c5
1 file changed, 4 insertions, 1 deletion
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("<table summary='ssdiff' class='ssdiff'>");