Merge pull request #2042 from zed-industries/fix-pasting-files

Allow pasting the same entry more than once in project panel
This commit is contained in:
Petros Amoiridis 2023-01-18 18:37:31 +02:00 committed by GitHub
commit 6cc84a77c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -763,7 +763,6 @@ impl ProjectPanel {
ix += 1;
}
self.clipboard_entry.take();
if clipboard_entry.is_cut() {
if let Some(task) = self.project.update(cx, |project, cx| {
project.rename_entry(clipboard_entry.entry_id(), new_path, cx)