Fixed horrible crash bug with opening vim.

This commit is contained in:
Storm Dragon
2026-05-10 22:31:17 -04:00
parent c7d74726da
commit 9e2d5a89b3
3 changed files with 15 additions and 1 deletions
+10
View File
@@ -24,6 +24,16 @@ def test_csi_sequences_with_intermediate_characters_do_not_render_final_byte():
assert "p" not in screen["text"]
@pytest.mark.unit
def test_private_sgr_sequence_from_fullscreen_apps_does_not_crash():
terminal = Terminal(10, 3, DummyProcessInput())
terminal.feed(b"\x1b[?25;7mX")
screen = terminal.get_screen_content()
assert screen["text"].splitlines()[0] == "X "
@pytest.mark.unit
def test_optional_float_setting_uses_default_when_missing():
settings_manager = type(