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.

Cleanup dbg

Julia57e10b7dd56c
diff --git a/crates/editor/src/items.rs b/crates/editor/src/items.rs
index ccabe81de6c..0cc8575e991 100644
--- a/crates/editor/src/items.rs
+++ b/crates/editor/src/items.rs
@@ -55,11 +55,9 @@ impl FollowableItem for Editor {
let buffer = buffer.await?;
let editor = pane
.read_with(&cx, |pane, cx| {
- let existing = pane.items_of_type::<Self>().find(|editor| {
+ pane.items_of_type::<Self>().find(|editor| {
editor.read(cx).buffer.read(cx).as_singleton().as_ref() == Some(&buffer)
- });
- dbg!(&existing);
- existing
+ })
})
.unwrap_or_else(|| {
pane.update(&mut cx, |_, cx| {