mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 12:29: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.Flags := [fdfSearchInAncestors..fdfIgnoreCurContextNode];
|
||||
if FindIdentifierInContext(Params)
|
||||
and (Params.NewNode <> ExprType.Context.Node.Parent) then
|
||||
and (Params.NewCodeTool <> ExprType.Context.Tool) then
|
||||
NewType := ExprType.Context.Tool.ExtractSourceName + '.' + NewType;
|
||||
end;
|
||||
finally
|
||||
|
Loading…
Reference in New Issue
Block a user