Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
assistant_context_editor: Fix patch block not rendering due to window reborrow (#24461)
Marshall Bowers8ff8dbdb2baa
diff --git a/crates/assistant_context_editor/src/context_editor.rs b/crates/assistant_context_editor/src/context_editor.rsindex d1b9fbbda72..290cff13fae 100644--- a/crates/assistant_context_editor/src/context_editor.rs+++ b/crates/assistant_context_editor/src/context_editor.rs@@ -832,12 +832,13 @@ impl ContextEditor {let render_block: RenderBlock = Arc::new({let this = this.clone();let patch_range = range.clone();- move |cx: &mut BlockContext<'_, '_>| {+ move |cx: &mut BlockContext| {let max_width = cx.max_width;let gutter_width = cx.gutter_dimensions.full_width();let block_id = cx.block_id;let selected = cx.selected;- this.update_in(cx, |this, window, cx| {+ let window = &mut cx.window;+ this.update(cx.app, |this, cx| {this.render_patch_block(patch_range.clone(),max_width,