mirror of
https://github.com/KDE/konsole.git
synced 2026-02-01 10:51:33 -05:00
Do not insert one extra emtpy line every 500 lines in the saved history.
The code for adding that extra empty line was introduced in commit d3d909 (4 years ago). The reason and intention is not clear, so removing those code might cause regression. Anyway, this commit is simple and can be reverted easily, if unfortunately needed. BUG: 225501 FIXED-IN: 4.8 REVIEW: 102652
This commit is contained in:
@@ -1423,17 +1423,6 @@ void SaveHistoryTask::jobDataRequested(KIO::Job* job , QByteArray& data)
|
||||
info.session->emulation()->writeToStream( info.decoder , info.lastLineFetched+1 , copyUpToLine );
|
||||
info.decoder->end();
|
||||
|
||||
// if there are still more lines to process after this request
|
||||
// then insert a new line character
|
||||
// to ensure that the next block of lines begins on a new line
|
||||
//
|
||||
// FIXME - There is still an extra new-line at the end of the save data.
|
||||
if ( copyUpToLine <= sessionLines-1 )
|
||||
{
|
||||
stream << '\n';
|
||||
}
|
||||
|
||||
|
||||
info.lastLineFetched = copyUpToLine;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user