diff --git a/src/ce_editor.pas b/src/ce_editor.pas index 88f43109..00641d88 100644 --- a/src/ce_editor.pas +++ b/src/ce_editor.pas @@ -201,11 +201,11 @@ end; procedure TCEEditorWidget.docFocused(aDoc: TCESynMemo); begin - if aDoc = fDoc then exit; - fDoc := aDoc; if fDoc.isNotNil and pageControl.currentPage.isNotNil and (pageControl.currentPage.Caption = '') then updatePageCaption; + if aDoc = fDoc then exit; + fDoc := aDoc; focusedEditorChanged; updateImperative; end;