From 137a8f4cc6cfe4abc3ae9686887dc571840a414d 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 e032b69aff..5dbbcfa0ba 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -4434,7 +4434,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),