Browse Source

[TextView] Initialize model, to avoid requiring the Text property to be set, fixes #147

miguel 6 years ago
parent
commit
d16571fdc0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Terminal.Gui/Views/TextView.cs

+ 1 - 1
Terminal.Gui/Views/TextView.cs

@@ -32,7 +32,7 @@ using NStack;
 
 namespace Terminal.Gui {
 	class TextModel {
-		List<List<Rune>> lines;
+		List<List<Rune>> lines = new List<List<Rune>> ();
 
 		public bool LoadFile (string file)
 		{