MG: closing editor now switches to left editor

git-svn-id: trunk@1688 -
This commit is contained in:
lazarus 2002-05-16 15:51:49 +00:00
parent e21ba6b96e
commit 661e18eb9f
2 changed files with 7 additions and 1 deletions

View File

@ -3568,7 +3568,7 @@ begin
Project1.RemoveUnit(i);
end;
writeln('TMainIDE.DoCloseEditorUnit end');
writeln('TMainIDE.DoCloseEditorUnit end');
Result:=mrOk;
end;
@ -6372,6 +6372,9 @@ end.
{ =============================================================================
$Log$
Revision 1.298 2002/05/16 15:51:48 lazarus
MG: closing editor now switches to left editor
Revision 1.297 2002/05/16 14:35:19 lazarus
MG: fixed codetools error jumping

View File

@ -2850,6 +2850,9 @@ writeln('TSourceNotebook.CloseFile A PageIndex=',PageIndex);
if Notebook.Pages.Count>1 then begin
//writeln('TSourceNotebook.CloseFile B PageIndex=',PageIndex);
Notebook.Pages.Delete(PageIndex);
// switch to left PageIndex
if PageIndex>0 then
Notebook.PageIndex:=PageIndex-1;
//writeln('TSourceNotebook.CloseFile C PageIndex=',PageIndex);
UpdateStatusBar;
end else begin