Reimplement scrolling the display up and down using the keyboard. This is now done in the display rather than the emulation, which allows displays on the same session to be scrolled independantly, but doesn't respect the scroll commands defined in the key bindings file.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=666607
This commit is contained in:
Robert Knight
2007-05-20 12:15:10 +00:00
parent 74f640315e
commit 8a81e29f8f
3 changed files with 43 additions and 47 deletions

View File

@@ -142,6 +142,9 @@ void ScreenWindow::scrollBy( RelativeScrollMode mode , int amount )
void ScreenWindow::scrollTo( int line )
{
if ( line < 0 )
line = 0;
if ( (lineCount() - windowLines()) < line )
line = qMax(0,lineCount() - windowLines());