From 5d1b749e8d851202e67d0038803914a1bf1c9d02 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 630c69abe3..2991d3e00a 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -4463,7 +4463,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