diff --git a/crates/zeta/src/zeta.rs b/crates/zeta/src/zeta.rs index a1b171304e179351dbdf936a32d86f8b5f10f0d9..0e94e4fb915cd9bf0af7b00a69ac8d8e1bbbd68d 100644 --- a/crates/zeta/src/zeta.rs +++ b/crates/zeta/src/zeta.rs @@ -409,7 +409,7 @@ impl Zeta { offset: usize, snapshot: &BufferSnapshot, ) -> Vec<(Range, String)> { - let diff = similar::TextDiff::from_chars(old_text.as_str(), new_text); + let diff = similar::TextDiff::from_words(old_text.as_str(), new_text); let mut edits: Vec<(Range, String)> = Vec::new(); let mut old_start = offset;