mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 11:49:07 +02:00
codetools: debugging
git-svn-id: trunk@26473 -
This commit is contained in:
parent
67d24912a8
commit
82ca00f5f5
@ -1713,10 +1713,12 @@ begin
|
||||
if (PrevLineAtomEndPos>0) then
|
||||
PrevLineAtomEndPos:=FindPrevNonSpace(Source,PrevLineAtomEndPos);
|
||||
|
||||
//debugln(['TFullyAutomaticBeautifier.GetIndent AAA1 ',Stack.LastBlockClosed.StartPos,' ',PositionsInSameLine(Source,Stack.LastBlockClosed.StartPos,Block.StartPos),' SubTypeValid=',SubTypeValid]);
|
||||
if (Stack.LastBlockClosed.StartPos>0)
|
||||
and (not PositionsInSameLine(Source,Stack.LastBlockClosed.StartPos,Block.StartPos))
|
||||
and ((not SubTypeValid) or (SubType in bbtAllAlignToSibling))
|
||||
then begin
|
||||
//debugln(['TFullyAutomaticBeautifier.GetIndent AAA2 ',Stack.LastBlockClosedAt,' ',PositionsInSameLine(Source,Stack.LastBlockClosedAt,PrevLineAtomEndPos)]);
|
||||
// a child block was closed that was started in another line than current block
|
||||
// and this subtype aligns as its siblings
|
||||
if (Stack.LastBlockClosedAt>0)
|
||||
|
Loading…
Reference in New Issue
Block a user