mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:37:34 +00:00
LibVT: Ignore DECSTBM with invalid values (#8559)
Co-authored-by: pancake <pancake@nopcode.org>
This commit is contained in:
parent
241f9f21d4
commit
390d3e9fbe
1 changed files with 3 additions and 0 deletions
|
@ -396,6 +396,9 @@ void Terminal::DECSTBM(Parameters params)
|
||||||
dbgln("Error: DECSTBM: scrolling region invalid: {}-{}", top, bottom);
|
dbgln("Error: DECSTBM: scrolling region invalid: {}-{}", top, bottom);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (top >= bottom) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
m_scroll_region_top = top - 1;
|
m_scroll_region_top = top - 1;
|
||||||
m_scroll_region_bottom = bottom - 1;
|
m_scroll_region_bottom = bottom - 1;
|
||||||
set_cursor(0, 0);
|
set_cursor(0, 0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue