Include deletion hunks in fold regardless of end

This commit is contained in:
Julia 2022-10-13 00:42:53 -04:00
parent e744520d90
commit e75dcc853b
2 changed files with 39 additions and 13 deletions

View file

@ -191,7 +191,6 @@ impl BufferDiff {
}
if kind == GitDiffLineType::Deletion {
*buffer_row_divergence -= 1;
let end = content_offset + content_len;
match &mut head_byte_range {
@ -204,6 +203,8 @@ impl BufferDiff {
let row = old_row as i64 + *buffer_row_divergence;
first_deletion_buffer_row = Some(row as u32);
}
*buffer_row_divergence -= 1;
}
}