line must be computed, fix the bottom of the screen "diff fortunes profile" bug.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9873 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -287,6 +287,7 @@ static void
|
|||||||
tab(void)
|
tab(void)
|
||||||
{
|
{
|
||||||
int i = console.x;
|
int i = console.x;
|
||||||
|
int target_line;
|
||||||
|
|
||||||
console.x = (console.x + TAB_SIZE) & ~TAB_MASK;
|
console.x = (console.x + TAB_SIZE) & ~TAB_MASK;
|
||||||
if (console.x >= console.columns) {
|
if (console.x >= console.columns) {
|
||||||
@@ -296,9 +297,10 @@ tab(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// We need to insert spaces, or else the whole line is going to be ignored.
|
// We need to insert spaces, or else the whole line is going to be ignored.
|
||||||
for (; i < console.x; i++)
|
target_line = WRAP(console.first_line + console.y, console.num_lines);
|
||||||
console.lines[console.first_line + console.y][i] = ' ';
|
for (; i < console.x; i++) {
|
||||||
|
console.lines[target_line][i] = ' ';
|
||||||
|
}
|
||||||
// There is no need to mark the line dirty
|
// There is no need to mark the line dirty
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user