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

Commit 2db45c8

Browse files
Fix for the double line down bug (#59).
1 parent 848d471 commit 2db45c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UI/Components/EditorIndentation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ 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
43+
else if (lastLineLastNonWhitespaceChar == '{')
4444
{
4545
indentation = Program.Indentation + "\n";
4646
}

0 commit comments

Comments
 (0)