From 238e8e374f61c774aa302d94b80de5d9c7d3d2d9 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 eb3cdd8cac..30843fd36a 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -4470,7 +4470,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),