mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-24 19:10:24 +00:00
Delete less aggressively
This commit is contained in:
parent
c2b60df5af
commit
08df24412a
1 changed files with 3 additions and 3 deletions
|
@ -82,9 +82,9 @@ pub struct StreamingDiff {
|
|||
|
||||
impl StreamingDiff {
|
||||
const INSERTION_SCORE: f64 = -1.;
|
||||
const DELETION_SCORE: f64 = -5.;
|
||||
const EQUALITY_BASE: f64 = 2.;
|
||||
const MAX_EQUALITY_EXPONENT: i32 = 20;
|
||||
const DELETION_SCORE: f64 = -20.;
|
||||
const EQUALITY_BASE: f64 = 1.8;
|
||||
const MAX_EQUALITY_EXPONENT: i32 = 16;
|
||||
|
||||
pub fn new(old: String) -> Self {
|
||||
let old = old.chars().collect::<Vec<_>>();
|
||||
|
|
Loading…
Reference in a new issue