mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 22:20:25 +02:00
fixed FindInFiles using last history word
git-svn-id: trunk@6308 -
This commit is contained in:
parent
843c0a6291
commit
e79126fec6
@ -3677,7 +3677,10 @@ Begin
|
||||
if SelAvail and (BlockBegin.Y = BlockEnd.Y)
|
||||
then FindText := SelText
|
||||
else FindText := GetWordAtRowCol(LogicalCaretXY);
|
||||
end
|
||||
end else begin
|
||||
if InputHistories.FindHistory.Count>0 then
|
||||
FindText:=InputHistories.FindHistory[0];
|
||||
end;
|
||||
end;
|
||||
|
||||
FindInFiles(AProject, FindText);
|
||||
@ -3686,8 +3689,8 @@ End;
|
||||
procedure TSourceNotebook.FindInFiles(AProject: TProject;
|
||||
const FindText: string);
|
||||
begin
|
||||
if FindInFilesDialog = nil
|
||||
then FindInFilesDialog := CreateFindInFilesDialog;
|
||||
if FindInFilesDialog = nil then
|
||||
FindInFilesDialog := CreateFindInFilesDialog;
|
||||
|
||||
FindInFilesDialog.FindText:= FindText;
|
||||
IDEDialogLayoutList.ApplyLayout(FindInFilesDialog,320,430);
|
||||
|
Loading…
Reference in New Issue
Block a user