From caf5fcebe3cb7aa9d6c902f6a1867fc8334ea608 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Javier=20Merino=20Mor=C3=A1n?= Date: Thu, 30 Sep 2021 20:12:25 +0200 Subject: [PATCH] Insert Lines should be a noop if outside margins From esctest: ICHTests.test_ICH_ScrollOffRightMarginInScrollRegion --- src/Screen.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Screen.cpp b/src/Screen.cpp index 7661aebc..89506598 100644 --- a/src/Screen.cpp +++ b/src/Screen.cpp @@ -320,6 +320,9 @@ void Screen::deleteLines(int n) void Screen::insertLines(int n) { + if (_cuY < _topMargin) { + return; + } if (n < 1) { n = 1; // Default }