Merge pull request #39 from marcel303/ignoreCarriageReturn

Ignore carriage return when SetText is called
diff --git a/TextEditor.cpp b/TextEditor.cpp
index 895b8f5..f19ff2d 100644
--- a/TextEditor.cpp
+++ b/TextEditor.cpp
@@ -823,8 +823,12 @@
 	mLines.clear();

 	mLines.push_back(Line());

 	for (auto chr : aText)

-	{

-		if (chr == '\n')

+	{
+		if (chr == '\r')
+		{
+			// ignore the carriage return character
+		}
+		else if (chr == '\n')

 			mLines.push_back(Line());

 		else

 		{