IDE: code completion: do not jump if nothing changed

git-svn-id: trunk@24514 -
This commit is contained in:
mattias 2010-04-08 15:32:36 +00:00
parent e93c448c50
commit 58bb9f1591

View File

@ -14480,8 +14480,9 @@ begin
NewSource,NewX,NewY,NewTopLine) then
begin
ApplyCodeToolChanges;
DoJumpToCodePos(ActiveSrcEdit, ActiveUnitInfo,
NewSource, NewX, NewY, NewTopLine, true);
if NewSource<>nil then
DoJumpToCodePos(ActiveSrcEdit, ActiveUnitInfo,
NewSource, NewX, NewY, NewTopLine, true);
end else begin
// error: probably a syntax error or just not in a procedure head/body
// or not in a class