LibVT: Ignore DECSTBM with invalid values (#8559)

Co-authored-by: pancake <pancake@nopcode.org>
This commit is contained in:
pancake 2021-07-08 20:11:55 +02:00 committed by GitHub
parent 241f9f21d4
commit 390d3e9fbe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: sideshowbarker 2024-07-18 10:03:37 +09:00

View file

@ -396,6 +396,9 @@ void Terminal::DECSTBM(Parameters params)
dbgln("Error: DECSTBM: scrolling region invalid: {}-{}", top, bottom);
return;
}
if (top >= bottom) {
return;
}
m_scroll_region_top = top - 1;
m_scroll_region_bottom = bottom - 1;
set_cursor(0, 0);