Skip to content

Commit 3ad1243

Browse files
committed
Merge branch 'pb/maint-gitweb-blob-lineno' into maint
* pb/maint-gitweb-blob-lineno: gitweb: Fix blob linenr links in pathinfo mode
2 parents 958742b + b9759f0 commit 3ad1243

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gitweb/gitweb.perl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5064,7 +5064,8 @@ sub git_blob {
50645064
chomp $line;
50655065
$nr++;
50665066
$line = untabify($line);
5067-
printf "<div class=\"pre\"><a id=\"l%i\" href=\"#l%i\" class=\"linenr\">%4i</a> %s</div>\n",
5067+
printf "<div class=\"pre\"><a id=\"l%i\" href=\"" . href(-replay => 1)
5068+
. "#l%i\" class=\"linenr\">%4i</a> %s</div>\n",
50685069
$nr, $nr, $nr, esc_html($line, -nbsp=>1);
50695070
}
50705071
}

0 commit comments

Comments
 (0)