]> Sergey Matveev's repositories - public-inbox.git/commit
viewdiff: don't increment the reported hunk line number
authorKyle Meyer <kyle@kyleam.com>
Sat, 9 May 2020 18:57:46 +0000 (18:57 +0000)
committerEric Wong <e@yhbt.net>
Sat, 9 May 2020 19:32:11 +0000 (19:32 +0000)
commitc8e8c8107913df9c67c5eeee86d20f633d11a6d4
tree9a230f15d797c212e498adf8ac540624d1fdf694
parentb2f2d28e20f7bf9e7234d3134ec91cd9549001b1
viewdiff: don't increment the reported hunk line number

For a diff hunk starting at line N, diff_hunk() constructs the link
with "#n(N + 1)".  This sends the viewer one line below the first
context line.  Although this is minor and may not even be noticed,
there's not an obvious reason to increment the line number, so switch
to using the reported value as is.
lib/PublicInbox/ViewDiff.pm