diff --git a/src/ce_editor.pas b/src/ce_editor.pas index 357919d4..5b82353d 100644 --- a/src/ce_editor.pas +++ b/src/ce_editor.pas @@ -198,6 +198,8 @@ end; procedure TCEEditorWidget.docFocused(aDoc: TCESynMemo); begin + if pageControl.currentPage.Caption = '' then + updatePageCaption; if aDoc = fDoc then exit; fDoc := aDoc; focusedEditorChanged; @@ -206,7 +208,8 @@ end; procedure TCEEditorWidget.docChanged(aDoc: TCESynMemo); begin - if fDoc <> aDoc then exit; + if fDoc <> aDoc then + exit; fKeyChanged := true; beginDelayedUpdate; end;