From b44f5c3678775012c4f6a85064c447b05ad67c4b Mon Sep 17 00:00:00 2001 From: prpr Date: Thu, 21 Apr 2022 18:00:39 +0100 Subject: [PATCH] Fix clipboard paste for .ts files without sidecars --- webif/html/browse/clipboard.jim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/webif/html/browse/clipboard.jim b/webif/html/browse/clipboard.jim index ed2a1ea..c89317d 100755 --- a/webif/html/browse/clipboard.jim +++ b/webif/html/browse/clipboard.jim @@ -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]"}