diff --git a/ide/editorfilemanager.pas b/ide/editorfilemanager.pas index 8fff51d3f1..622178fd5c 100644 --- a/ide/editorfilemanager.pas +++ b/ide/editorfilemanager.pas @@ -361,8 +361,7 @@ begin end; end; FilterEdit.InvalidateFilter; - FileCountLabel.Caption:=Format(dlgFiles, [IntToStr(SourceEditorManager. - SourceEditorCount)]); + FileCountLabel.Caption:=Format(dlgFiles,[IntToStr(SourceEditorManager.SourceEditorCount)]); end; function TEditorFileManagerForm.SrcEditorByListItem(ListIndex: integer): TSourceEditor; diff --git a/packager/pkgmanager.pas b/packager/pkgmanager.pas index 2a4aad540b..024eee988b 100644 --- a/packager/pkgmanager.pas +++ b/packager/pkgmanager.pas @@ -2237,7 +2237,6 @@ var SrcEdit: TSourceEditorInterface; begin for i:=SourceEditorManagerIntf.SourceEditorCount-1 downto 0 do begin - if i>=SourceEditorManagerIntf.SourceEditorCount then continue; SrcEdit:=SourceEditorManagerIntf.SourceEditors[i]; if not AllChangedFilenames.Contains(SrcEdit.FileName) then continue; if LazarusIDE.DoCloseEditorFile(SrcEdit,