diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce 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 'source')
| -rw-r--r-- | source/ui-diff.c | 5 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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'>"); |
