difftastic/src
Wilfred Hughes 5a51c02157 Fix crash when the last hunk includes the trailing newline at EOF
Input cleaning should happen before we diff the content, not during
display. Previously display would crash due to line numbers
referencing the line that had been stripped.

Fixes #713
Fixes #739
Fixes #742
2024-07-26 08:54:20 +07:00
..
diff Silence some clippy warnings 2024-06-29 23:08:11 +07:00
display Fix crash when the last hunk includes the trailing newline at EOF 2024-07-26 08:54:20 +07:00
parse Ensure files with no common content are aligned 2024-07-20 23:43:04 +07:00
conflicts.rs Use pub(crate) everywhere for visibility 2023-11-18 16:46:13 +07:00
constants.rs Use pub(crate) everywhere for visibility 2023-11-18 16:46:13 +07:00
exit_codes.rs Use pub(crate) everywhere for visibility 2023-11-18 16:46:13 +07:00
files.rs Prefer .to_owned() on &str 2024-05-07 08:32:30 +07:00
hash.rs Use pub(crate) everywhere for visibility 2023-11-18 16:46:13 +07:00
line_parser.rs Update tests and changelog for 1e8be4558b 2024-07-21 11:15:54 +07:00
lines.rs Ensure line splitting distinguishes "foo" and "foo\n" 2024-07-20 16:09:44 +07:00
main.rs Fix crash when the last hunk includes the trailing newline at EOF 2024-07-26 08:54:20 +07:00
options.rs Improve terminal width detection 2024-05-10 16:26:48 +07:00
summary.rs Use pub(crate) everywhere for visibility 2023-11-18 16:46:13 +07:00
version.rs Include rustc version in --version output 2023-11-28 13:07:33 +07:00
words.rs Avoid `res` locals in favour of more meaningful names 2023-11-28 13:27:27 +07:00