Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Add a missing notify when updating the project diff (#26396)

Cole Miller63dab5f89101
diff --git a/crates/git_ui/src/project_diff.rs b/crates/git_ui/src/project_diff.rs
index 5d0ef6698d5..01393186249 100644
--- a/crates/git_ui/src/project_diff.rs
+++ b/crates/git_ui/src/project_diff.rs
@@ -474,7 +474,10 @@ impl ProjectDiff {
})?;
}
}
- this.update(&mut cx, |this, _| this.pending_scroll.take())?;
+ this.update(&mut cx, |this, cx| {
+ this.pending_scroll.take();
+ cx.notify();
+ })?;
}
Ok(())