diff options
author | zeripath <art27@cantab.net> | 2021-12-20 02:15:49 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-20 02:15:49 +0000 |
commit | fb5f7791ef0c4bd176a031729623c9d0c1310efb (patch) | |
tree | ad5708aec2e50511443f2e27cbf6913ac5872aef /vendor/github.com/alecthomas | |
parent | e4e411821d985cf8f9007d9640909ab9ee271dd7 (diff) | |
download | gitea-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 'vendor/github.com/alecthomas')
0 files changed, 0 insertions, 0 deletions