From mboxrd@z Thu Jan 1 00:00:00 1970 From: andy at warmcat.com (Andy Green) Date: Thu, 21 Jun 2018 13:42:57 +0800 Subject: [PATCH 2/3] ui-tree: use the line range highlight script In-Reply-To: References: Message-ID: <152955977738.31282.10565028843716654091.stgit@mail.warmcat.com> This allows it to work in /tree/ and /source/ URLs. Signed-off-by: Andy Green --- ui-tree.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui-tree.c b/ui-tree.c index e4cb558..b66cabe 100644 --- a/ui-tree.c +++ b/ui-tree.c @@ -226,6 +226,8 @@ static void print_object(const struct object_id *oid, char *path, const char *ba } else print_buffer(basename, buf, size); + cgit_emit_line_range_highlight_script(0); + free(buf); free(mimetype); }