X-Git-Url: https://git.cameronkatri.com/cgit.git/blobdiff_plain/30304d8156a72ffc95e45e1aa9407319b81bd253..143e65252c1c842774bc5a601d5faef97ca6c886:/ui-log.c diff --git a/ui-log.c b/ui-log.c index ff832ce..0782478 100644 --- a/ui-log.c +++ b/ui-log.c @@ -442,8 +442,10 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern compile_grep_patterns(&rev.grep_filter); prepare_revision_walk(&rev); - if (pager) + if (pager) { + cgit_print_layout_start(); html(""); + } html(""); if (commit_graph) @@ -476,7 +478,7 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern if (ofs<0) ofs = 0; - for (i = 0; i < ofs && (commit = get_revision(&rev)) != NULL; i++) { + for (i = 0; i < ofs && (commit = get_revision(&rev)) != NULL; /* nop */) { if (show_commit(commit, &rev)) i++; free_commit_buffer(commit); @@ -484,7 +486,7 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern commit->parents = NULL; } - for (i = 0; i < cnt && (commit = get_revision(&rev)) != NULL; i++) { + for (i = 0; i < cnt && (commit = get_revision(&rev)) != NULL; /* nop */) { /* * In "follow" mode, we must count the files and lines the * first time we invoke diff on a given commit, and we need @@ -526,6 +528,7 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern html(""); } html(""); + cgit_print_layout_end(); } else if ((commit = get_revision(&rev)) != NULL) { htmlf("
", columns); cgit_log_link("[...]", NULL, NULL, ctx.qry.head, NULL,