mirror of https://gitlab.com/basile.b/dexed.git
fix #454 - AV when searching in a whole project and no files opened
This commit is contained in:
parent
fd39a248c0
commit
dfac54d407
|
@ -396,12 +396,11 @@ begin
|
||||||
fSearchMru.Insert(0,fToFind);
|
fSearchMru.Insert(0,fToFind);
|
||||||
cbToFind.Items.Assign(fSearchMru);
|
cbToFind.Items.Assign(fSearchMru);
|
||||||
|
|
||||||
fDocSelStart := fDoc.BlockBegin;
|
|
||||||
fDocSelStop := fDoc.BlockEnd;
|
|
||||||
|
|
||||||
case fFindScope of
|
case fFindScope of
|
||||||
scDoc, scSel:
|
scDoc, scSel:
|
||||||
begin
|
begin
|
||||||
|
fDocSelStart := fDoc.BlockBegin;
|
||||||
|
fDocSelStop := fDoc.BlockEnd;
|
||||||
findAll(fDoc.fileName, fDoc.Lines, true);
|
findAll(fDoc.fileName, fDoc.Lines, true);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue