mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 16:40:48 +02:00
codetools: FindExpressionTypeOfTerm fixed searching start of term
git-svn-id: trunk@22391 -
This commit is contained in:
parent
5687aefd2c
commit
61560943a1
@ -6048,7 +6048,7 @@ var
|
||||
begin
|
||||
Result:=false;
|
||||
if StartPos<1 then
|
||||
StartPos:=FindStartOfTerm(EndPos,NodeTermInType(Params.ContextNode))
|
||||
StartPos:=FindStartOfTerm(EndPos-1,NodeTermInType(Params.ContextNode))
|
||||
else if EndPos<1 then
|
||||
EndPos:=FindEndOfTerm(StartPos,true,WithAsOperator);
|
||||
if (StartPos<1) then
|
||||
|
Loading…
Reference in New Issue
Block a user