mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
Fixes #3771. TextView doesn't consider no-printable rune in draw and cursor position.
This commit is contained in:
@@ -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 ();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user