Don't treat identical text files as binary

Looks like a copy-paste mistake.
better_inline
Wilfred Hughes 2022-01-24 20:33:31 +07:00
parent 1a26441c52
commit 440c94ce3c
2 changed files with 5 additions and 1 deletions

@ -8,6 +8,9 @@ Improved performance when all file changes are close together.
Added syntax highlighting for unchanged comments, strings and types.
Fixed a bug (introduced in 0.15) where identical text files were
reported as binary files.
## 0.16 (released 22 January 2022)
### Parsing

@ -292,7 +292,7 @@ fn diff_file_content(display_path: &str, lhs_bytes: &[u8], rhs_bytes: &[u8]) ->
return DiffResult {
path: display_path.into(),
language: ts_lang.map(|l| l.name.into()),
binary: true,
binary: false,
lhs_src: "".into(),
rhs_src: "".into(),
lhs_positions: vec![],
@ -431,5 +431,6 @@ mod tests {
assert_eq!(res.lhs_positions, vec![]);
assert_eq!(res.rhs_positions, vec![]);
assert!(!res.binary);
}
}