Diff options
Diffstat (limited to 'source')
| -rw-r--r-- | source/ui-log.c | 5 |
1 file changed, 5 insertions, 0 deletions
diff --git a/source/ui-log.c b/source/ui-log.c index 5b3a88a..052d586 100644 --- a/source/ui-log.c +++ b/source/ui-log.c @@ -597,6 +597,11 @@ void cgit_print_log(const char *tip, int ofs, int cnt, const char *grep, const c release_commit_memory(the_repository->parsed_objects, commit); commit->parents = NULL; } + // A search that matched nothing would leave the table a header alone. + if (!i && !ofs && grep && pattern && *pattern) { + htmlf("<tr class='nohover'><td colspan='%d'>", columns + filler); + html("No commits match the search</td></tr>\n"); + } if (pager) { print_pager(&rev, path, ofs, cnt); cgit_print_layout_end(); |
