Skip to content

Commit

Permalink
Fix file reloading not populating the history (#20156)
Browse files Browse the repository at this point in the history
Closes #20111
Closes #20153

cc @mikayla-maki and @ConradIrwin 

Release Notes:

- Fixed undo stack corruption on external file changes
([#20111](#20111))
([#20153](#20153))

Co-authored-by: Antonio Scandurra <[email protected]>
  • Loading branch information
SomeoneToIgnore and as-cii authored Nov 4, 2024
1 parent 25443a9 commit c41a8e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/project/src/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2214,7 +2214,7 @@ impl Project {
match event {
BufferEvent::ReloadNeeded => {
if !self.is_via_collab() {
self.reload_buffers([buffer.clone()].into_iter().collect(), false, cx)
self.reload_buffers([buffer.clone()].into_iter().collect(), true, cx)
.detach_and_log_err(cx);
}
}
Expand Down

0 comments on commit c41a8e3

Please sign in to comment.