From 031a9d54e238c3372ee181b7bf7d290a320ea61d Mon Sep 17 00:00:00 2001 From: Jekyll Wu Date: Sun, 24 Jul 2011 12:06:18 +0800 Subject: [PATCH] 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 --- src/SessionController.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/SessionController.cpp b/src/SessionController.cpp index 19e27506a..7bd990753 100644 --- a/src/SessionController.cpp +++ b/src/SessionController.cpp @@ -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; } }