Replace MultiBuffer::files with ::for_each_buffer

This commit is contained in:
Max Brunsfeld 2023-01-17 16:13:26 -08:00
parent f61b870db6
commit 292708573f
3 changed files with 14 additions and 14 deletions

View file

@ -482,7 +482,7 @@ impl Pane {
) -> Box<dyn ItemHandle> {
let existing_item = pane.update(cx, |pane, cx| {
for (index, item) in pane.items.iter().enumerate() {
if item.project_path(cx).is_some()
if item.is_singleton(cx)
&& item.project_entry_ids(cx).as_slice() == [project_entry_id]
{
let item = item.boxed_clone();