From mboxrd@z Thu Jan 1 00:00:00 1970 From: andy at warmcat.com (Andy Green) Date: Thu, 21 Jun 2018 13:43:02 +0800 Subject: [PATCH 3/3] ui-blame: use the line range highlight script In-Reply-To: References: Message-ID: <152955978246.31282.8360294267984019431.stgit@mail.warmcat.com> This allows it to work on /blame/ URLs. Blame has an extra layer of parent elements which has to be taken into account by the JS when finding the highlight width, hence the 1 arg to the emit function. Signed-off-by: Andy Green --- ui-blame.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ui-blame.c b/ui-blame.c index 50d0580..ef8a41b 100644 --- a/ui-blame.c +++ b/ui-blame.c @@ -212,6 +212,7 @@ static void print_object(const struct object_id *oid, const char *path, html("\n\n"); + cgit_emit_line_range_highlight_script(1); cgit_print_layout_end(); cleanup: