IDE: setdirseparator on fpc output

git-svn-id: trunk@25895 -
This commit is contained in:
mattias 2010-06-04 15:50:24 +00:00
parent 4eeeb7d463
commit d7bdeb4d84

View File

@ -710,7 +710,7 @@ var i, j, FilenameEndPos: integer;
// add path to history
if fCompilingHistory=nil then fCompilingHistory:=TStringList.Create;
inc(p,length('Compiling '));
if (length(s)>=p+1) and (s[p]='.') and (s[p+1]=PathDelim) then
if (length(s)>=p+1) and (s[p]='.') and (s[p+1] in ['/','\']) then
inc(p,2);
AFilename:=TrimFilename(SetDirSeparators(copy(s,p,length(s))));
fCompilingHistory.Add(AFilename);