summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibVT/Terminal.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibVT/Terminal.cpp b/Userland/Libraries/LibVT/Terminal.cpp
index e21635f8d9..ce1d054c9a 100644
--- a/Userland/Libraries/LibVT/Terminal.cpp
+++ b/Userland/Libraries/LibVT/Terminal.cpp
@@ -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);