mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-19 00:19:26 +02:00
IDE: find/rename identifier: ignore invalid filename, note on console
git-svn-id: trunk@54658 -
This commit is contained in:
parent
bad374e722
commit
256375f0c9
@ -132,11 +132,15 @@ begin
|
|||||||
i:=0;
|
i:=0;
|
||||||
while i<=Files.Count-2 do begin
|
while i<=Files.Count-2 do begin
|
||||||
while (i<=Files.Count-2) and (CompareFilenames(Files[i],Files[i+1])=0) do
|
while (i<=Files.Count-2) and (CompareFilenames(Files[i],Files[i+1])=0) do
|
||||||
begin
|
|
||||||
Files.Delete(i+1);
|
Files.Delete(i+1);
|
||||||
end;
|
|
||||||
inc(i);
|
inc(i);
|
||||||
end;
|
end;
|
||||||
|
// remove non files
|
||||||
|
for i:=Files.Count-1 downto 0 do
|
||||||
|
if ExtractFilename(Files[i])='' then begin
|
||||||
|
debugln(['Note: (lazarus) [FindRenameIdentifier.CleanUpFileList] invalid file "',Files[i],'"']);
|
||||||
|
Files.Delete(i);
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function ShowFindRenameIdentifierDialog(const Filename: string;
|
function ShowFindRenameIdentifierDialog(const Filename: string;
|
||||||
|
Loading…
Reference in New Issue
Block a user