From mboxrd@z Thu Jan 1 00:00:00 1970 From: andy at warmcat.com (Andy Green) Date: Thu, 21 Jun 2018 17:35:10 +0800 Subject: [PATCH v2 5/5] ui-blame: use the line range highlight script In-Reply-To: <152957329993.21285.2517119299142660486.stgit@mail.warmcat.com> References: <152957329993.21285.2517119299142660486.stgit@mail.warmcat.com> Message-ID: <152957370998.21285.13753568838906757938.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: