Update output tracking state of screen window when scrolling using Shift+Page/Arrow keys

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=666825
This commit is contained in:
Robert Knight
2007-05-20 23:35:51 +00:00
parent 2fd69ce1ba
commit 0956611a06
3 changed files with 13 additions and 0 deletions

View File

@@ -140,6 +140,11 @@ void ScreenWindow::scrollBy( RelativeScrollMode mode , int amount )
}
}
bool ScreenWindow::atEndOfOutput() const
{
return _currentLine >= (lineCount()-windowLines());
}
void ScreenWindow::scrollTo( int line )
{
if ( line < 0 )