Fixed horrible crash bug with opening vim.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user