From 2f9135e39a1db361eaf912cec15afaf81ef12a5c Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Tue, 17 Jun 2008 13:28:24 +0000 Subject: [PATCH] Fixed \ESCM (reverse index). It shall only scroll when the cursor is in the first line. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25992 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/terminal/TermParse.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/apps/terminal/TermParse.cpp b/src/apps/terminal/TermParse.cpp index 5f3848f4b8..1f910a7934 100644 --- a/src/apps/terminal/TermParse.cpp +++ b/src/apps/terminal/TermParse.cpp @@ -834,7 +834,10 @@ TermParse::EscParse() case CASE_RI: /* RI */ - fBuffer->ScrollBy(-1); + if (fBuffer->Cursor().y == 0) + fBuffer->ScrollBy(-1); + else + fBuffer->MoveCursorUp(1); parsestate = groundtable; break;