Skip to content

Commit

Permalink
Fix incorrect string splitting for textbox
Browse files Browse the repository at this point in the history
Closes #987
  • Loading branch information
leezer3 committed Feb 6, 2024
1 parent fbc2b6a commit a2193a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/LibRender2/Primitives/Textbox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public string Text

private List<string> WrappedLines(int width)
{
string[] firstSplit = Text.Split(new[] {"\r\n", @"\r\n"}, StringSplitOptions.None);
string[] firstSplit = Text.Split(new[] {"\r\n", "\n"}, StringSplitOptions.None);
List<string> wrappedLines = new List<string>();
string currentLine = string.Empty;
for(int j = 0; j < firstSplit.Length; j++)
Expand Down

0 comments on commit a2193a6

Please sign in to comment.