diff --git a/crates/project_panel/src/project_panel.rs b/crates/project_panel/src/project_panel.rs index 3744a36c00f61e0c14442a0075c4784c64dff820..c19f293fdc7d82ccc050611c10741784c5b3fd96 100644 --- a/crates/project_panel/src/project_panel.rs +++ b/crates/project_panel/src/project_panel.rs @@ -908,7 +908,8 @@ impl ProjectPanel { .to_os_string(); let mut new_path = entry.path.to_path_buf(); - if entry.is_file() { + // If we're pasting into a file, or a directory into itself, go up one level. + if entry.is_file() || (entry.is_dir() && entry.id == clipboard_entry.entry_id()) { new_path.pop(); }