<font size="4"><font face="georgia,serif">This code looks wrong; remind me where this is used? The charsToFill is either 0 or a negative number in my testing. If the scroll back is huge, the charsToFill will go beyond what a -int can handle. Also, if charsToFill is negative don't bother calling fillWithDefaultChar.</font></font><div>
<font class="Apple-style-span" face="georgia, serif" size="4"><br></font></div><div><font class="Apple-style-span" face="georgia, serif" size="4">Thoughts?</font></div><div><font class="Apple-style-span" face="georgia, serif" size="4"> Kurt<br>
</font><div><font class="Apple-style-span" face="georgia, serif" size="4"><br></font><div><font size="4"><font face="georgia,serif"><br></font></font></div><div><font size="4"><font face="georgia,serif">void ScreenWindow::fillUnusedArea()</font></font></div>
<div><font size="4"><font face="georgia,serif"><div> int screenEndLine = _screen->getHistLines() + _screen->getLines() - 1;</div><div> int windowEndLine = currentLine() + windowLines() - 1;</div><div><br></div>
<div> int unusedLines = windowEndLine - screenEndLine;</div><div> int charsToFill = unusedLines * windowColumns();</div><div><br></div><div> Screen::fillWithDefaultChar(_windowBuffer + _windowBufferSize - charsToFill, charsToFill);</div>
<div><br></div></font></font></div></div></div>