textport fixes for insertLine, tabTo.

git-svn-id: svn://qnap.local/TwoTerm/trunk@2001 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
This commit is contained in:
Kelvin Sherlock 2011-01-20 02:34:41 +00:00
parent 4a44a3dd4b
commit 98f5aa6d65

View File

@ -154,7 +154,7 @@ void Screen::tabTo(TextPort *textPort, unsigned xPos)
_screen[cursor.y][x + textPort->frame.minX()] = clear;
}
textPort->cursor.x += xPos;
textPort->cursor.x = xPos;
if (textPort != &_port) _port.cursor = textPort->absoluteCursor();
_updates.push_back(_port.cursor);
@ -833,7 +833,7 @@ void Screen::deleteLine(TextPort *textPort, unsigned line)
if (line >= frame.height()) return;
// move all subsequent lines back by 1.
for (int y = line; y < frame.height() - 2; ++y)
for (int y = line; y < frame.height() - 1; ++y)
{
CharInfoIterator iter;
CharInfoIterator end;