mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
Clone item when dragging to split
This commit is contained in:
parent
9059d70153
commit
4f32f66271
@ -1777,10 +1777,11 @@ impl Pane {
|
||||
.read(cx)
|
||||
.items()
|
||||
.find(|item| item.item_id() == item_id)
|
||||
.map(|i| i.boxed_clone());
|
||||
|
||||
.map(|item| item.boxed_clone());
|
||||
if let Some(item) = item {
|
||||
workspace.split_item(split_direction, item, cx);
|
||||
if let Some(item) = item.clone_on_split(workspace.database_id(), cx) {
|
||||
workspace.split_item(split_direction, item, cx);
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user