mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-21 12:59:14 +02:00
SourceEditor: Fix indent with more than window
git-svn-id: trunk@24232 -
This commit is contained in:
parent
dac2e43b34
commit
220072f09b
@ -6435,7 +6435,8 @@ var
|
|||||||
CodeBuf: TCodeBuffer;
|
CodeBuf: TCodeBuffer;
|
||||||
begin
|
begin
|
||||||
Result:=false;
|
Result:=false;
|
||||||
SrcEdit:=GetActiveSE;
|
//SrcEdit:=GetActiveSE;
|
||||||
|
SrcEdit := Manager.ActiveEditor; // Todo: Each SynEdits need thier own Beautifier, otherwise they call the wrong notebook
|
||||||
if assigned(Manager) and Assigned(Manager.OnGetIndent) then begin
|
if assigned(Manager) and Assigned(Manager.OnGetIndent) then begin
|
||||||
Result := Manager.OnGetIndent(Sender, SrcEdit, LogCaret, OldLogCaret, FirstLinePos, LastLinePos,
|
Result := Manager.OnGetIndent(Sender, SrcEdit, LogCaret, OldLogCaret, FirstLinePos, LastLinePos,
|
||||||
Reason, SetIndentProc);
|
Reason, SetIndentProc);
|
||||||
|
Loading…
Reference in New Issue
Block a user