Fix spurious newline when loading file in file editor

This commit is contained in:
prpr 2024-08-24 09:11:10 +01:00
parent 28d3499032
commit 72cca9737b

View File

@ -25,7 +25,7 @@ if {![file exists $file]} {
puts ">>> File $file is too large ([pretty_size $fsize] > [pretty_size $maxfsize])."
} else {
set fp [open $file r]
puts [read $fp]
puts -nonewline [read $fp]
close $fp
}
}