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
wilder-portage
Jekyll Wu 15 years ago
parent d11fd4ea18
commit 031a9d54e2
  1. 11
      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;
}
}

Loading…
Cancel
Save