Include deletion hunks in fold regardless of end
This commit is contained in:
parent
e744520d90
commit
e75dcc853b
2 changed files with 39 additions and 13 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue