mirror of
https://git.zx2c4.com/cgit
synced 2025-08-04 10:04:32 +02:00
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:
parent
df203a293e
commit
51140311bb
6 changed files with 21 additions and 8 deletions
6
ui-log.c
6
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("</div>");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue