forked from qt-creator/qt-creator
Make git clone output nicer
Do pass on the character that caused the line split in the signal from SynchronousProcess. That way the UI can handle '\r' properly, leading to a nicer git output. Task-number: QTCREATORBUG-16611 Change-Id: I1d73ec9061689267dfffd776f32ab9c10108d10e Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
@@ -239,7 +239,7 @@ QString ChannelBuffer::linesRead()
|
||||
return QString();
|
||||
|
||||
// Get completed lines and remove them from the incompleteLinesBuffer:
|
||||
const QString lines = SynchronousProcess::normalizeNewlines(incompleteLineBuffer.left(lastLineIndex));
|
||||
const QString lines = SynchronousProcess::normalizeNewlines(incompleteLineBuffer.left(lastLineIndex + 1));
|
||||
incompleteLineBuffer = incompleteLineBuffer.mid(lastLineIndex + 1);
|
||||
|
||||
return lines;
|
||||
|
||||
Reference in New Issue
Block a user