mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-01 21:16:06 +02:00
Debugger: Fixed trouble with execution-line, when changing units (would go to wrong line); introduced in r24569 #b60616fe5a (track line changes)
git-svn-id: trunk@24584 -
This commit is contained in:
parent
6b98807014
commit
37b03ff6d4
@ -1699,7 +1699,7 @@ begin
|
||||
Editor := nil;
|
||||
if SourceEditorManager <> nil
|
||||
then begin
|
||||
Editor := SourceEditorManager.GetActiveSE;
|
||||
Editor := SourceEditorManager.SourceEditorIntfWithFilename(NewSource.Filename);
|
||||
SourceEditorManager.ClearExecutionLines;
|
||||
SourceEditorManager.ClearErrorLines;
|
||||
end;
|
||||
@ -1717,7 +1717,7 @@ begin
|
||||
then begin
|
||||
if not Editor.HasExecutionMarks then
|
||||
Editor.FillExecutionMarks;
|
||||
Editor.ExecutionLine := SrcLine;
|
||||
Editor.ExecutionLine := i;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
@ -3374,7 +3374,6 @@ end;
|
||||
|
||||
procedure TSourceEditor.SetExecutionLine(NewLine: integer);
|
||||
begin
|
||||
NewLine := EditorComponent.IDEGutterMarks.DebugLineToSourceLine(NewLine);
|
||||
if ExecutionLine=NewLine then exit;
|
||||
if (FSharedValues.ExecutionMark = nil) then begin
|
||||
if NewLine = -1 then
|
||||
|
Loading…
Reference in New Issue
Block a user