Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit 6d2aa77

Browse files
committed
fix indentation issue in brackets
1 parent 6457907 commit 6d2aa77

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

UI/Components/EditorIndentation.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ public void IndentLine(TextDocument document, DocumentLine line)
4040
{
4141
indentation = indentation.Substring(0, indentation.Length) + Program.Indentation + "\n" + indentation.Substring(0, indentation.Length);
4242
}
43+
else
44+
{
45+
indentation = Program.Indentation + "\n";
46+
}
4347
}
4448
/*if (lastLineTextTrimmed == "{" && currentLineTextTrimmed != "}")
4549
{

0 commit comments

Comments
 (0)