Add search parameters to cgit_log_link

This makes the [prev] and [next] links work correctly on search results.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
Lars Hjemli
2007-11-03 10:42:37 +01:00
父節點 df203a293e
當前提交 51140311bb
共有 6 個文件被更改,包括 21 次插入8 次删除

查看文件

@ -118,13 +118,15 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern
if (ofs > 0) {
cgit_log_link("[prev]", NULL, NULL, cgit_query_head,
cgit_query_sha1, cgit_query_path,
ofs - cnt);
ofs - cnt, cgit_query_grep,
cgit_query_search);
html("&nbsp;");
}
if ((commit = get_revision(&rev)) != NULL) {
cgit_log_link("[next]", NULL, NULL, cgit_query_head,
cgit_query_sha1, cgit_query_path,
ofs + cnt);
ofs + cnt, cgit_query_grep,
cgit_query_search);
}
html("</div>");
}