Fix clipboard paste for .ts files without sidecars

This commit is contained in:
prpr 2022-04-21 18:00:39 +01:00
parent bdfae19796
commit b44f5c3678
1 changed files with 6 additions and 0 deletions

View File

@ -82,6 +82,7 @@ switch $action {
set path [$item get path]
set file [file tail $path]
set mode [$item get action]
set fileonly 0
puts "Pasting $file"
@ -105,8 +106,13 @@ switch $action {
"$dir/[file tail $f]"}
}
}
} else {
set fileonly 1
}
} else {
set fileonly 1
}
if {$fileonly} {
if {$mode eq "cut"} {
catch {file rename $path \
"$dir/[file tail $path]"}