From 2d8053b226b6d44dba597ecfeca1027c461c183c 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 6c01504c88..d75704fcf6 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -4543,7 +4543,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),