From 6f3bf106b50ddd13f18cdbaf15088ae65a0383ff Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Mon, 18 Jul 2016 11:58:31 +0200 Subject: [PATCH] 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 --- src/libs/utils/synchronousprocess.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/utils/synchronousprocess.cpp b/src/libs/utils/synchronousprocess.cpp index fdbf05c17e7..797b008d23e 100644 --- a/src/libs/utils/synchronousprocess.cpp +++ b/src/libs/utils/synchronousprocess.cpp @@ -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;