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 <[email protected]> --- 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("</tr>\n</table>\n"); + cgit_emit_line_range_highlight_script(1); cgit_print_layout_end(); cleanup: _______________________________________________ CGit mailing list [email protected] https://lists.zx2c4.com/mailman/listinfo/cgit
