Cleanup dbg

This commit is contained in:
Julia 2022-12-02 16:42:49 -05:00
parent 4bc1d77535
commit 57e10b7dd5

View file

@ -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| {