anchor.diff:    Name1, Name2: string;
   begin
     //avoid updating caption if API already had set it
  -  if FTabCaptionFromApi then exit;
  +  if FTabCaptionFromApi then
  +  begin
  +    DoOnChangeCaption; //remove 'modified' font color, repaint
  +    exit;
  +  end;
   
     if EditorsLinked then
     begin
  
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:     DoRemovePreviewStyle;
  
    UpdateCaptionFromFilename;
  
    if AWithEvent then
      DoPyEventState(Ed, EDSTATE_MODIFIED);
  