Fixes #3771. TextView doesn't consider no-printable rune in draw and cursor position.

This commit is contained in:
BDisp
2024-10-01 21:09:17 +01:00
parent 10bdd4bc0f
commit 6a6c210d9b
2 changed files with 21 additions and 0 deletions

View File

@@ -8660,4 +8660,18 @@ line.
Assert.True (t.Visible);
Assert.False (t.Autocomplete.Visible);
}
[Fact]
[AutoInitShutdown]
public void Draw_Esc_Rune ()
{
var tv = new TextView { Width = 5, Height = 1, Text = "\u001b" };
tv.BeginInit ();
tv.EndInit ();
tv.Draw ();
TestHelpers.AssertDriverContentsWithFrameAre ("\u241b", _output);
tv.Dispose ();
}
}