mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 14:25:38 +03:00
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
|
for k := 1 to eIndent + eTempIndent do
|
||||||
frmMain.sciEditor.Lines[i] := ' ' + frmMain.sciEditor.Lines[i];
|
frmMain.sciEditor.Lines[i] := ' ' + frmMain.sciEditor.Lines[i];
|
||||||
if eTempIndent <> 0 then
|
if eTempIndent > 0 then
|
||||||
eTempIndent := eTempIndent -1;
|
eTempIndent := eTempIndent -1;
|
||||||
|
|
||||||
if (IsAtStart('if', eStr[i], True)) and (Pos('{', eStr[i]) = 0) and (Length(eStr[i]) > 3) then begin
|
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