mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 03:49:30 +02:00
codetools: identifier completion: do not add unit name if identifier is in same unit
git-svn-id: trunk@41080 -
This commit is contained in:
parent
81fc1ab2f9
commit
f08c4e6329
@ -1607,7 +1607,7 @@ begin
|
|||||||
Params.ContextNode := CursorNode;
|
Params.ContextNode := CursorNode;
|
||||||
Params.Flags := [fdfSearchInAncestors..fdfIgnoreCurContextNode];
|
Params.Flags := [fdfSearchInAncestors..fdfIgnoreCurContextNode];
|
||||||
if FindIdentifierInContext(Params)
|
if FindIdentifierInContext(Params)
|
||||||
and (Params.NewNode <> ExprType.Context.Node.Parent) then
|
and (Params.NewCodeTool <> ExprType.Context.Tool) then
|
||||||
NewType := ExprType.Context.Tool.ExtractSourceName + '.' + NewType;
|
NewType := ExprType.Context.Tool.ExtractSourceName + '.' + NewType;
|
||||||
end;
|
end;
|
||||||
finally
|
finally
|
||||||
|
Loading…
Reference in New Issue
Block a user