summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibVT/Terminal.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibVT/Terminal.cpp b/Userland/Libraries/LibVT/Terminal.cpp
index 8d3758743e..3e5a4742b9 100644
--- a/Userland/Libraries/LibVT/Terminal.cpp
+++ b/Userland/Libraries/LibVT/Terminal.cpp
@@ -608,7 +608,7 @@ void Terminal::IL(Parameters params)
count = params[0];
invalidate_cursor();
for (; count > 0; --count) {
- active_buffer().insert(cursor_row() + m_scroll_region_top, make<Line>(m_columns));
+ active_buffer().insert(cursor_row(), make<Line>(m_columns));
if (m_scroll_region_bottom + 1 < active_buffer().size())
active_buffer().remove(m_scroll_region_bottom + 1);
else
@@ -640,7 +640,7 @@ void Terminal::DL(Parameters params)
count = min(count, max_count);
for (int c = count; c > 0; --c) {
- active_buffer().remove(cursor_row() + m_scroll_region_top);
+ active_buffer().remove(cursor_row());
if (m_scroll_region_bottom < active_buffer().size())
active_buffer().insert(m_scroll_region_bottom, make<Line>(m_columns));
else