Исправлен флаг модификации при открытии файла, исправлена 'Отмена' до пустого файла. Внес исправления на основе изменений https://github.com/wandrien/projman
This commit is contained in:
@@ -799,7 +799,7 @@ namespace eval Editor {
|
||||
bind $txt <Insert> {OverWrite}
|
||||
bind $txt <ButtonRelease-1> "Editor::SearchBrackets $txt"
|
||||
bind $txt <Button-1><ButtonRelease-1> "Editor::SelectionHighlight $txt"
|
||||
bind $txt <<Modified>> "SetModifiedFlag $w $nb"
|
||||
bind $txt <<Modified>> "SetModifiedFlag $w $nb auto"
|
||||
bind $txt <Control-u> "Editor::SearchBrackets %W"
|
||||
bind $txt <Control-Cyrillic_ghe> "Editor::SearchBrackets %W"
|
||||
bind $txt <Control-J> "catch {Editor::GoToFunction $txt}"
|
||||
@@ -965,7 +965,7 @@ namespace eval Editor {
|
||||
set nbEditorItem [NB::InsertItem $nbEditor $fileFullPath "file"]
|
||||
# puts "$nbEditorItem, $nbEditor"
|
||||
Editor $fileFullPath $nbEditor $nbEditorItem
|
||||
SetModifiedFlag $nbEditorItem $nbEditor
|
||||
SetModifiedFlag $nbEditorItem $nbEditor force
|
||||
focus -force $nbEditorItem.frmText.t.t
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user