Accommodate for the two lines of clearing ahead when in KDL. This avoids over-

writing lines that are printed below the previously cleared lines when paging.
Fixes bug #4145.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31865 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz 2009-07-28 21:31:27 +00:00
parent 55feb44e82
commit ab5421283b
1 changed files with 3 additions and 0 deletions

View File

@ -159,6 +159,9 @@ next_line(void)
sModule->fill_glyph(sScreen.columns - length, sScreen.y, length,
1, ' ', sScreen.attr);
}
if (sScreen.in_command_rows > 0)
sScreen.in_command_rows += 2;
}
if (sScreen.y == sScreen.rows - 1) {
sScreen.y = 0;