From bb579249fb8db935d7acf1cd68a8d27744011d09 Mon Sep 17 00:00:00 2001 From: BDisp Date: Fri, 13 Mar 2020 20:19:05 +0000 Subject: [PATCH] Fixes the extra characters that remains in case the new text length is smaller than the older. --- Terminal.Gui/Views/Label.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Terminal.Gui/Views/Label.cs b/Terminal.Gui/Views/Label.cs index 22866f382..232a9efcb 100644 --- a/Terminal.Gui/Views/Label.cs +++ b/Terminal.Gui/Views/Label.cs @@ -227,6 +227,7 @@ namespace Terminal.Gui { public virtual ustring Text { get => text; set { + Clear (new Rect (Frame.Location, new Size (text.Length, Frame.Height))); text = value; recalcPending = true; SetNeedsDisplay ();