mirror of
https://github.com/chmln/sd
synced 2024-11-22 11:13:04 +00:00
fix: use write! for diffs, writeln! produces extraneous lines
This commit is contained in:
parent
e6425e996d
commit
320bebd9d5
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ fn try_main() -> Result<()> {
|
|||
Source::File(path) => Some(path.as_path()),
|
||||
};
|
||||
// TODO: custom context radius
|
||||
writeln!(handle, "{}", create_udiff(mmap, replaced, 3, path)?)?;
|
||||
write!(handle, "{}", create_udiff(mmap, replaced, 3, path)?)?;
|
||||
}
|
||||
} else {
|
||||
// Windows requires closing mmap before writing:
|
||||
|
|
Loading…
Reference in a new issue