Explorar el Código

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

miguel hace 6 años
padre
commit
d16571fdc0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)
 		{