Commit 7e0d300c authored by Luis Javier Merino's avatar Luis Javier Merino Committed by Kurt Hindenburg
Browse files

Resize lines when clearing to end of line.

clearImage() just clears until _columns.  To prevent characters from
beyond _columns from reappearing, e.g. due to DCH (Delete CHaracters)
requests, make clearImage() resize lines when clearing to the end of
line.

BUG: 432669
(cherry picked from commit ed7fe4a2)
parent 94e4285d
......@@ -1130,6 +1130,10 @@ void Screen::clearImage(int loca, int loce, char c, bool resetLineRendition)
line.resize(endCol + 1);
}
if (endCol == _columns - 1) {
line.resize(endCol + 1);
}
if (startCol <= endCol) {
std::fill(line.begin() + startCol, line.begin() + (endCol + 1), clearCh);
}
......
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