summaryrefslogtreecommitdiffstats
path: root/go.mod
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-12-20 02:15:49 +0000
committerGitHub <noreply@github.com>2021-12-20 02:15:49 +0000
commitfb5f7791ef0c4bd176a031729623c9d0c1310efb (patch)
treead5708aec2e50511443f2e27cbf6913ac5872aef /go.mod
parente4e411821d985cf8f9007d9640909ab9ee271dd7 (diff)
downloadgitea-fb5f7791ef0c4bd176a031729623c9d0c1310efb.tar.gz
gitea-fb5f7791ef0c4bd176a031729623c9d0c1310efb.zip
Prevent off-by-one error on comments on newly appended lines (#18029)
* Prevent off-by-one error on comments on newly appended lines There was a bug in CutDiffAroundLine whereby if a file without a terminal new line has a patch which appends lines to it and a comment is placed on one of those lines the comment diff will be a line out of place. This fixes CutDiffAroundLine to simply ignore the missing terminal newline - however, we should really improve this rendering to add a marker to say that there was a previously missing terminal newline. Fix #17875 Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'go.mod')
0 files changed, 0 insertions, 0 deletions