fixed bug where indenter unindented the entire code
This commit is contained in:
parent
e1caa575e7
commit
2edbf72391
@ -155,7 +155,7 @@ begin
|
||||
|
||||
for k := 1 to eIndent + eTempIndent do
|
||||
frmMain.sciEditor.Lines[i] := ' ' + frmMain.sciEditor.Lines[i];
|
||||
if eTempIndent <> 0 then
|
||||
if eTempIndent > 0 then
|
||||
eTempIndent := eTempIndent -1;
|
||||
|
||||
if (IsAtStart('if', eStr[i], True)) and (Pos('{', eStr[i]) = 0) and (Length(eStr[i]) > 3) then begin
|
||||
|
Loading…
Reference in New Issue
Block a user