Make the Typo and Words work with synonyms

This commit is contained in:
Clément Renault 2019-12-06 13:41:22 +01:00
parent f87c67fcad
commit 4e91b31b1f
No known key found for this signature in database
GPG key ID: 0151CDAB43460DAE
3 changed files with 76 additions and 80 deletions

View file

@ -188,7 +188,7 @@ fn replacement(
let n = real - range.start;
let start = origins[origin];
let end = origins[new_origin + 1];
let end = origins.get(new_origin + 1)?;
let remaining = (end - start) - n;
Some(Range {