codetools: rename identifier: procedure jump to prochead

git-svn-id: trunk@42074 -
This commit is contained in:
mattias 2013-07-13 12:42:32 +00:00
parent e3385b3536
commit 71afb213fb

View File

@ -1512,8 +1512,11 @@ begin
and (NodeIsMethodBody(CursorNode.Parent)) then begin
// if this is a procedure body, try to find the corresponding declaration
NewNode:=FindCorrespondingProcNode(CursorNode.Parent);
if (NewNode<>nil) and (NewNode.StartPos<CursorNode.StartPos) then
CleanCursorPos:=NewNode.StartPos
if (NewNode<>nil) and (NewNode.Desc=ctnProcedure) then
NewNode:=NewNode.FirstChild;
if (NewNode<>nil) and (NewNode.StartPos<CursorNode.StartPos) then begin
CleanCursorPos:=NewNode.StartPos;
end
else
NewNode:=CursorNode;
end;