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:
Jekyll Wu
2011-07-24 12:06:18 +08:00
parent d11fd4ea18
commit 031a9d54e2

View File

@@ -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;
}
}