From c5875c6c44b679ad96812bb02e05db011c5b79b1 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Sun, 25 Sep 2011 10:23:29 +0200 Subject: [PATCH] Only switch on the line number toggle when highlighting is activated Signed-off-by: Johannes Schindelin --- gitweb/gitweb.perl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 8fdda5b711..2e485a0a66 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -4458,7 +4458,8 @@ sub git_print_page_path { print $cgi->a({-href => href(action=>"blob_plain", file_name=>$file_name, hash_base=>$hb), -title => $name}, esc_path($basename)); - print '     + if (gitweb_check_feature('highlight')) { + print '     '; + } } elsif (defined $type && $type eq 'tree') { print $cgi->a({-href => href(action=>"tree", file_name=>$file_name, hash_base=>$hb), -- 2.11.4.GIT