Commit 8a33aa6c authored by Carlos Alves's avatar Carlos Alves
Browse files

Fix correct beginning position while copying texts

Was missing the startColumn factor in the startCopy position.

BUG: 436845
parent e03a4680
......@@ -100,7 +100,7 @@ void CompactHistoryScroll::getCells(const int lineNumber, const int startColumn,
Q_ASSERT(startColumn >= 0);
Q_ASSERT(startColumn <= lineLen(lineNumber) - count);
auto startCopy = _cells.begin() + startOfLine(lineNumber);
auto startCopy = _cells.begin() + startOfLine(lineNumber) + startColumn;
auto endCopy = startCopy + count;
std::copy(startCopy, endCopy, buffer);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment