DBG: Improved, jumping to correct line, if source was changed (missing files)

git-svn-id: trunk@32354 -
This commit is contained in:
martin 2011-09-15 17:11:41 +00:00
parent bbf2217ed8
commit ad2d7983d8
2 changed files with 4 additions and 1 deletions

View File

@ -15043,7 +15043,10 @@ begin
end;
if NewX<1 then NewX:=1;
if NewY<1 then NewY:=1;
if jfMapLineFromDebug in Flags then
NewY := NewSrcEdit.DebugToSourceLine(NewY);
//debugln(['[TMainIDE.DoJumpToCodePosition] ',NewX,',',NewY,',',NewTopLine]);
try
NewSrcEdit.BeginUpdate;
NewSrcEdit.EditorComponent.MoveLogicalCaretIgnoreEOL(Point(NewX,NewY));

View File

@ -118,7 +118,7 @@ type
ieorExport
);
TJumpToCodePosFlag = (jfAddJumpPoint, jfFocusEditor, jfMarkLine);
TJumpToCodePosFlag = (jfAddJumpPoint, jfFocusEditor, jfMarkLine, jfMapLineFromDebug);
TJumpToCodePosFlags = set of TJumpToCodePosFlag;
{ TMainIDEInterface }