mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-21 11:59:28 +02:00
IDE: fixed find/rename identifier: trim after making absolute
git-svn-id: trunk@34589 -
This commit is contained in:
parent
1a479ce95a
commit
16b7e1da2a
@ -15396,11 +15396,12 @@ var
|
||||
for i:=0 to Options.ExtraFiles.Count-1 do begin
|
||||
CurFileMask:=Options.ExtraFiles[i];
|
||||
if not GlobalMacroList.SubstituteStr(CurFileMask) then exit;
|
||||
CurFileMask:=ChompPathDelim(TrimFilename(CurFileMask));
|
||||
CurFileMask:=ChompPathDelim(CurFileMask);
|
||||
if not FilenameIsAbsolute(CurFileMask) then begin
|
||||
if Project1.IsVirtual then continue;
|
||||
CurFileMask:=AppendPathDelim(Project1.ProjectDirectory)+CurFileMask;
|
||||
CurFileMask:=AppendPathDelim(Project1.ProjectDirectory+CurFileMask);
|
||||
end;
|
||||
CurFileMask:=TrimFilename(CurFileMask);
|
||||
OnlyPascalSources:=false;
|
||||
if DirPathExistsCached(CurFileMask) then begin
|
||||
// a whole directory
|
||||
|
Loading…
Reference in New Issue
Block a user