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:
Max Brunsfeld 2024-10-08 17:30:42 -07:00 committed by GitHub
parent b0a9005163
commit e351148152
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 85 additions and 54 deletions

View file

@ -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);
})