]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-log.c
Add commit->msg_encoding, allocate msg dynamicly.
[ps-cgit] / ui-log.c
index e7f7d6f43daf86212951455f307a0d0ddfa89533..9f5fdf6dbbaf43bca750a4040302cea5169f39da 100644 (file)
--- 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("</div>");
        }