anchor.diff:      DoRemovePreviewStyle;
   
     UpdateCaptionFromFilename;
  -  DoOnChangeCaption;
   
     if AWithEvent then
       DoPyEventState(Ed, EDSTATE_MODIFIED);
  
positive.code:       if Assigned(FOnAddRecent) then
          FOnAddRecent(Ed);
  
      if not TabCaptionFromApi then
        UpdateCaptionFromFilename
      else
        DoOnChangeCaption; //to remove 'modified' font color
  
      DoSaveUndo(Ed, SFileName);
      DoPyEvent(Ed, cEventOnSaveAfter, []);
  
negative.code:   Name1, Name2: string;
  begin
    //avoid updating caption if API already had set it
    if FTabCaptionFromApi then
    begin
      DoOnChangeCaption; //remove 'modified' font color, repaint
      exit;
    end;
  
    if EditorsLinked then
    begin
  