Fix bugs in expanding diff hunk (#18885)
Release Notes: - Fixed an issue where diff hunks at the boundaries of multi buffer excerpts could not be expanded
This commit is contained in:
parent
b0a9005163
commit
e351148152
3 changed files with 85 additions and 54 deletions
|
@ -1156,7 +1156,6 @@ impl Buffer {
|
|||
this.non_text_state_update_count += 1;
|
||||
if let Some(BufferDiffBase::PastBufferVersion { rope, .. }) = &mut this.diff_base {
|
||||
*rope = diff_base_rope;
|
||||
cx.emit(BufferEvent::DiffBaseChanged);
|
||||
}
|
||||
cx.emit(BufferEvent::DiffUpdated);
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue