mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 18:39:52 +02:00
MG: closing editor now switches to left editor
git-svn-id: trunk@1688 -
This commit is contained in:
parent
e21ba6b96e
commit
661e18eb9f
@ -3568,7 +3568,7 @@ begin
|
|||||||
Project1.RemoveUnit(i);
|
Project1.RemoveUnit(i);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
writeln('TMainIDE.DoCloseEditorUnit end');
|
writeln('TMainIDE.DoCloseEditorUnit end');
|
||||||
Result:=mrOk;
|
Result:=mrOk;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -6372,6 +6372,9 @@ end.
|
|||||||
|
|
||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
$Log$
|
$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
|
Revision 1.297 2002/05/16 14:35:19 lazarus
|
||||||
MG: fixed codetools error jumping
|
MG: fixed codetools error jumping
|
||||||
|
|
||||||
|
@ -2850,6 +2850,9 @@ writeln('TSourceNotebook.CloseFile A PageIndex=',PageIndex);
|
|||||||
if Notebook.Pages.Count>1 then begin
|
if Notebook.Pages.Count>1 then begin
|
||||||
//writeln('TSourceNotebook.CloseFile B PageIndex=',PageIndex);
|
//writeln('TSourceNotebook.CloseFile B PageIndex=',PageIndex);
|
||||||
Notebook.Pages.Delete(PageIndex);
|
Notebook.Pages.Delete(PageIndex);
|
||||||
|
// switch to left PageIndex
|
||||||
|
if PageIndex>0 then
|
||||||
|
Notebook.PageIndex:=PageIndex-1;
|
||||||
//writeln('TSourceNotebook.CloseFile C PageIndex=',PageIndex);
|
//writeln('TSourceNotebook.CloseFile C PageIndex=',PageIndex);
|
||||||
UpdateStatusBar;
|
UpdateStatusBar;
|
||||||
end else begin
|
end else begin
|
||||||
|
Loading…
Reference in New Issue
Block a user