[PATCH 3/3] ui-blame: use the line range highlight script
Andy Green
andy at warmcat.com
Thu Jun 21 07:43:02 CEST 2018
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 <andy at warmcat.com>
---
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:
More information about the CGit
mailing list