fix: don't allow pasted contents to include the destination.
This commit is contained in:
parent
926a16ce2e
commit
50ca5316f9
1 changed files with 2 additions and 1 deletions
|
|
@ -1111,7 +1111,8 @@ impl Application for App {
|
|||
}
|
||||
}
|
||||
}
|
||||
Message::PasteContents(to, contents) => {
|
||||
Message::PasteContents(to, mut contents) => {
|
||||
contents.paths.retain(|p| p != &to);
|
||||
if !contents.paths.is_empty() {
|
||||
match contents.kind {
|
||||
ClipboardKind::Copy => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue