A SubstitutionPart is not a deletion if it replaces nothing with nothing
This commit is contained in:
parent
52e003a6e9
commit
370c816a71
21 changed files with 130 additions and 198 deletions
|
@ -1704,7 +1704,7 @@ impl EmitterWriter {
|
|||
{
|
||||
notice_capitalization |= only_capitalization;
|
||||
|
||||
let has_deletion = parts.iter().any(|p| p.is_deletion());
|
||||
let has_deletion = parts.iter().any(|p| p.is_deletion(sm));
|
||||
let is_multiline = complete.lines().count() > 1;
|
||||
|
||||
if let Some(span) = span.primary_span() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue