SourceEditor: Fix indent with more than window

git-svn-id: trunk@24232 -
This commit is contained in:
martin 2010-03-26 21:58:40 +00:00
parent dac2e43b34
commit 220072f09b

View File

@ -6435,7 +6435,8 @@ var
CodeBuf: TCodeBuffer;
begin
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
Result := Manager.OnGetIndent(Sender, SrcEdit, LogCaret, OldLogCaret, FirstLinePos, LastLinePos,
Reason, SetIndentProc);