From 51140311bb3b0d4d0e859d5045ffe4c74478f5fe Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Sat, 3 Nov 2007 10:42:37 +0100 Subject: Add search parameters to cgit_log_link This makes the [prev] and [next] links work correctly on search results. Signed-off-by: Lars Hjemli --- ui-log.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ui-log.c') diff --git a/ui-log.c b/ui-log.c index e7f7d6f..9f5fdf6 100644 --- a/ui-log.c +++ b/ui-log.c @@ -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(" "); } 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(""); } -- cgit v1.2.3-59-g8ed1b