Commit 9046680f authored by Luis Javier Merino's avatar Luis Javier Merino Committed by Tomaz Canabrava
Browse files

Ignore non-real chars for selection in history

Commit e8f77101 did this for screen lines.  Do it also for lines in the
history buffer.
parent 4e69f47b
......@@ -1636,6 +1636,12 @@ int Screen::copyLineToStream(int line,
_history->getCells(line, start, count, characterBuffer);
// Exclude trailing empty cells from count and don't bother processing them further.
// See the comment on the similar case for screen lines for an explanation.
while (count > 0 && !characterBuffer[start + count - 1].isRealCharacter) {
if (_history->isWrappedLine(line)) {
currentLineProperties |= LINE_WRAPPED;
} else {
Supports Markdown
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