Исправил ошибку

This commit is contained in:
Sergey Kalinin
2025-12-03 18:02:13 +03:00
parent bcc3460e06
commit aa9bb03cc2
3 changed files with 14 additions and 7 deletions

View File

@@ -915,8 +915,8 @@ proc Execute {filePath w activeEditor} {
# Added executor from config
set fileType [string toupper [string trimleft [file extension $filePath] "."]]
if {[info exists cfgVariables(fileType)] == 0} {
$w.frame.text insert end "$cfgVariables($fileType) "
if {[info exists cfgVariables($fileType)] != 0 && $cfgVariables($fileType) ne ""} {
$w.frame.text insert end "$cfgVariables($fileType) %f"
}
unset fileType
# $w.frame.text insert end [string toupper [string trimleft [file extension $filePath] "."]]