diff --git a/components/codetools/codecache.pas b/components/codetools/codecache.pas index 07e416ca63..ddcd4a1ca7 100644 --- a/components/codetools/codecache.pas +++ b/components/codetools/codecache.pas @@ -1029,7 +1029,7 @@ function TCodeBuffer.FileOnDiskNeedsUpdate: boolean; begin if LoadDateValid then Result:=Modified or (FFileChangeStep<>ChangeStep) - or (not FileExistsUTF8(Filename)) + or (not FileExistsCached(Filename)) else Result:=false; end;