don't rely on mvarText; should be removed if unnecessary

This commit is contained in:
Michael Becker 2021-02-01 18:36:30 -05:00
parent d4b2803088
commit aafc8c8e3e
No known key found for this signature in database
GPG Key ID: 98C333A81F18C22C

View File

@ -58,7 +58,7 @@ namespace UniversalEditor.ObjectModels.Text.Plain
public System.Collections.Specialized.StringCollection Lines { get { return mvarLines; } }
private string mvarText = String.Empty;
public string Text { get { return mvarText; } set { mvarText = value; RebuildLines(); } }
public string Text { get { return String.Join(LineTerminator, Lines); } set { mvarText = value; RebuildLines(); } }
private string mvarLineTerminator = System.Environment.NewLine;
public string LineTerminator { get { return mvarLineTerminator; } set { mvarLineTerminator = value; RebuildLines(); } }