Parcourir la source

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

miguel il y a 6 ans
Parent
commit
d16571fdc0
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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)
 		{