codetools: identifier completion: do not add unit name if identifier is in same unit

git-svn-id: trunk@41080 -
This commit is contained in:
mattias 2013-05-08 18:56:17 +00:00
parent 81fc1ab2f9
commit f08c4e6329

View File

@ -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