From d16571fdc0afdc7cd9d2b3bcbdd641964c6719d2 Mon Sep 17 00:00:00 2001 From: miguel Date: Sat, 1 Dec 2018 12:28:46 -0500 Subject: [PATCH] [TextView] Initialize model, to avoid requiring the Text property to be set, fixes #147 --- Terminal.Gui/Views/TextView.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Terminal.Gui/Views/TextView.cs b/Terminal.Gui/Views/TextView.cs index 8a5ec2277..855d1dc69 100644 --- a/Terminal.Gui/Views/TextView.cs +++ b/Terminal.Gui/Views/TextView.cs @@ -32,7 +32,7 @@ using NStack; namespace Terminal.Gui { class TextModel { - List> lines; + List> lines = new List> (); public bool LoadFile (string file) {