mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-07 11:11:30 +00:00
Cleanup dbg
This commit is contained in:
parent
4bc1d77535
commit
57e10b7dd5
1 changed files with 2 additions and 4 deletions
|
@ -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| {
|
||||
|
|
Loading…
Reference in a new issue