Исправлен флаг модификации при открытии файла, исправлена 'Отмена' до пустого файла. Внес исправления на основе изменений https://github.com/wandrien/projman

This commit is contained in:
svk
2026-01-21 12:24:08 +03:00
parent 96dd7a1b4b
commit 4f01a1fbd7
3 changed files with 20 additions and 5 deletions

View File

@@ -489,7 +489,7 @@ namespace eval FileOper {
set txt $itemName.frmText.t
if ![string match "*untitled*" $itemName] {
set file [open "$fileFullPath" r]
$txt insert end [chan read -nonewline $file]
$txt insert end [chan read -nonewline $file]
close $file
}
# Delete emty last line
@@ -497,6 +497,11 @@ namespace eval FileOper {
$txt delete {end-1 line} end
# puts ">[$txt get {end-1 line} end]<"
}
# ------------
# Thanks https://github.com/wandrien/
# https://github.com/wandrien/projman/commit/7d5539ac2031fbdcb0f4a97465ff19d0c348cf33
$txt edit reset
# -----------
$txt see 1.0
}