mirror of
https://github.com/ksherlock/TwoTerm.git
synced 2025-02-26 13:29:02 +00:00
textport fixes for insertLine, tabTo.
git-svn-id: svn://qnap.local/TwoTerm/trunk@2001 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
This commit is contained in:
parent
4a44a3dd4b
commit
98f5aa6d65
@ -154,7 +154,7 @@ void Screen::tabTo(TextPort *textPort, unsigned xPos)
|
|||||||
_screen[cursor.y][x + textPort->frame.minX()] = clear;
|
_screen[cursor.y][x + textPort->frame.minX()] = clear;
|
||||||
}
|
}
|
||||||
|
|
||||||
textPort->cursor.x += xPos;
|
textPort->cursor.x = xPos;
|
||||||
if (textPort != &_port) _port.cursor = textPort->absoluteCursor();
|
if (textPort != &_port) _port.cursor = textPort->absoluteCursor();
|
||||||
|
|
||||||
_updates.push_back(_port.cursor);
|
_updates.push_back(_port.cursor);
|
||||||
@ -833,7 +833,7 @@ void Screen::deleteLine(TextPort *textPort, unsigned line)
|
|||||||
if (line >= frame.height()) return;
|
if (line >= frame.height()) return;
|
||||||
|
|
||||||
// move all subsequent lines back by 1.
|
// 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 iter;
|
||||||
CharInfoIterator end;
|
CharInfoIterator end;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user