Replace MultiBuffer::files with ::for_each_buffer
This commit is contained in:
parent
f61b870db6
commit
292708573f
3 changed files with 14 additions and 14 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue