anchor.diff:    end;
     F:= D.TabObject as TEditorFrame;
   
  -  //tick:= GetTickCount64;
     F.DoFileOpen(AFileName, AFileName2,
       bEnableHistory,
       bAllowLexerDetect,
  
positive.code:       OpenMode);
      MsgStatusFileOpened(AFileName, AFileName2);
  
      if bEnableEventOpened then
      begin
        SetLength(Params, 0);
        DoPyEvent(Result.Ed1, cEventOnOpen, Params);
      end;
  
      Result.SetFocus;
      exit;
    end;
  
  
negative.code:     bEnableLoadUndo,
      OpenMode);
    Result:= F;
  
    UpdateStatusbar;
    MsgStatusFileOpened(AFileName, AFileName2);
  
    //set TabIndex before on_open firing, to fix CudaText #3314
    if Assigned(APages) then
      APages.Tabs.TabIndex:= APages.Tabs.FindTabByObject(F);
  
    SetLength(Params, 0);
  
  